Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2216/0.2216, allocations: 46.94 MB / 361.7 MB, free: 4.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002194, allocations: 67.89 kB / 0.4969 GB, free: 7.938 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3377, allocations: 66.03 MB / 0.5614 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004332/0.342, allocations: 2.715 MB / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3434, allocations: 0.7866 MB / 0.5648 GB, free: 1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.3435, allocations: 7.938 kB / 0.5648 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002213/0.3438, allocations: 79.36 kB / 0.5649 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002223/0.344, allocations: 107.2 kB / 0.565 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.3442, allocations: 115.8 kB / 0.5651 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004518/0.3447, allocations: 434.2 kB / 0.5655 GB, free: 276 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.3449, allocations: 99.84 kB / 0.5656 GB, free: 172 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.3451, allocations: 147.5 kB / 0.5658 GB, free: 24 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.3453, allocations: 175.1 kB / 0.5659 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.068e-05/0.3454, allocations: 32 kB / 0.566 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.678e-05/0.3455, allocations: 32 kB / 0.566 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.549e-05/0.3455, allocations: 79.75 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.3457, allocations: 187 kB / 0.5663 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004716/0.3462, allocations: 436.1 kB / 0.5667 GB, free: 15.1 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3462, allocations: 0 / 0.5667 GB, free: 15.1 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3462, allocations: 0 / 0.5667 GB, free: 15.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3462, allocations: 0 / 0.5667 GB, free: 15.1 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001142/0.3473, allocations: 0.6066 MB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.3474, allocations: 16.02 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.632e-05/0.3474, allocations: 9.188 kB / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.325e-05/0.3475, allocations: 70.72 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.324e-05/0.3476, allocations: 40.7 kB / 0.5674 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004443/0.348, allocations: 220.9 kB / 0.5676 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.3481, allocations: 29.38 kB / 0.5676 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.095e-05/0.3481, allocations: 28.38 kB / 0.5677 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008459/0.349, allocations: 365.8 kB / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.349, allocations: 3.938 kB / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.349, allocations: 12 kB / 0.568 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.349, allocations: 8 kB / 0.568 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007174/0.3498, allocations: 265.5 kB / 0.5683 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002391/0.3521, allocations: 1.292 MB / 0.5696 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.3527, allocations: 198.5 kB / 0.5697 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.3529, allocations: 75.56 kB / 0.5698 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.3529, allocations: 7.984 kB / 0.5698 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.353, allocations: 38.5 kB / 0.5699 GB, free: 11.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.783e-06/0.353, allocations: 4 kB / 0.5699 GB, free: 11.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008265/0.3538, allocations: 245.7 kB / 0.5701 GB, free: 11.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.472e-05/0.3539, allocations: 140.6 kB / 0.5702 GB, free: 11.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003966/0.3543, allocations: 337.7 kB / 0.5706 GB, free: 10.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.3543, allocations: 25.7 kB / 0.5706 GB, free: 10.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/0.3545, allocations: 252.1 kB / 0.5708 GB, free: 10.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.598e-05/0.3546, allocations: 55.53 kB / 0.5709 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.3547, allocations: 61.88 kB / 0.5709 GB, free: 10.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.3549, allocations: 342.7 kB / 0.5713 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002484/0.3552, allocations: 84.5 kB / 0.5713 GB, free: 10.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.3555, allocations: 156.2 kB / 0.5715 GB, free: 9.832 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005755/0.3561, allocations: 262.9 kB / 0.5717 GB, free: 9.535 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3561, allocations: 0 / 0.5717 GB, free: 9.535 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006985/0.3568, allocations: 313.1 kB / 0.572 GB, free: 9.223 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3568, allocations: 4 kB / 0.572 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.3568, allocations: 7.938 kB / 0.572 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.3568, allocations: 4 kB / 0.572 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/0.3573, allocations: 92.11 kB / 0.5721 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.3573, allocations: 8 kB / 0.5721 GB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.3576, allocations: 47.72 kB / 0.5722 GB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.3576, allocations: 8 kB / 0.5722 GB, free: 9.055 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001859/0.3578, allocations: 161.6 kB / 0.5724 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.3579, allocations: 31.81 kB / 0.5724 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.615e-05/0.3579, allocations: 34.5 kB / 0.5724 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3579, allocations: 4 kB / 0.5724 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.358, allocations: 4 kB / 0.5724 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.358, allocations: 288 / 0.5724 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008843/0.3588, allocations: 0.5594 MB / 0.573 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3588, allocations: 0 / 0.573 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.3591, allocations: 64.03 kB / 0.573 GB, free: 8.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.809e-06/0.3591, allocations: 11.92 kB / 0.573 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.3592, allocations: 0 / 0.573 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.3592, allocations: 7.984 kB / 0.573 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3592, allocations: 0 / 0.573 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005844/0.3597, allocations: 398.7 kB / 0.5734 GB, free: 7.684 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.528e-05/0.3598, allocations: 35.8 kB / 0.5735 GB, free: 7.648 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.3598, allocations: 12 kB / 0.5735 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.3601, allocations: 15.98 kB / 0.5735 GB, free: 7.621 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.3601, allocations: 19.97 kB / 0.5735 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3601, allocations: 7.938 kB / 0.5735 GB, free: 7.594 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002516/0.3604, allocations: 239.2 kB / 0.5737 GB, free: 7.363 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3604, allocations: 3.938 kB / 0.5737 GB, free: 7.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004047/0.3608, allocations: 71.83 kB / 0.5738 GB, free: 7.289 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009494/0.3618, allocations: 0.9333 MB / 0.5747 GB, free: 6.312 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005454/0.3623, allocations: 200 kB / 0.5749 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3623, allocations: 0 / 0.5749 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002309/0.3625, allocations: 79.83 kB / 0.575 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.3629, allocations: 17.44 kB / 0.575 GB, free: 6.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004307/0.3673, allocations: 3.001 MB / 0.5779 GB, free: 2.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.3677, allocations: 0.7714 MB / 0.5787 GB, free: 2.043 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.3678, allocations: 25.94 kB / 0.5787 GB, free: 2.016 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.3679, allocations: 107.4 kB / 0.5788 GB, free: 1.91 MB / 414.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3679, allocations: 0 / 0.5788 GB, free: 1.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.3944, allocations: 5.297 MB / 0.584 GB, free: 12.76 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.01, allocations: 13.91 kB / 0.584 GB, free: 12.75 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.99370067298878]