Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000834/0.0008339, allocations: 94.2 kB / 16.95 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001047, allocations: 185.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007544/0.0007547, allocations: 12 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1168, allocations: 47.58 MB / 328.4 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006644/0.1235, allocations: 5.57 MB / 333.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005449/0.129, allocations: 2.311 MB / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.1302, allocations: 23.94 kB / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.1314, allocations: 270.5 kB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002356/0.1338, allocations: 0.5831 MB / 337.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002145/0.1359, allocations: 0.8843 MB / 338 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001567/0.1375, allocations: 0.9967 MB / 339 MB, free: 9.402 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002672/0.1402, allocations: 1.191 MB / 340.2 MB, free: 8.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007562/0.141, allocations: 374.5 kB / 340.5 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006793/0.1417, allocations: 477.9 kB / 341 MB, free: 7.324 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.1418, allocations: 52 kB / 341.1 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.1428, allocations: 343.6 kB / 341.4 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.143, allocations: 175.2 kB / 341.6 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.1433, allocations: 205.2 kB / 341.8 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001429/0.1448, allocations: 1.122 MB / 342.9 MB, free: 5.434 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1448, allocations: 0 / 342.9 MB, free: 5.434 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1448, allocations: 0 / 342.9 MB, free: 5.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.658e-05/0.1448, allocations: 0 / 342.9 MB, free: 5.434 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.00441/0.1492, allocations: 1.476 MB / 344.4 MB, free: 3.906 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.1493, allocations: 8.031 kB / 344.4 MB, free: 3.898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003911/0.1532, allocations: 0.5802 MB / 345 MB, free: 3.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.1543, allocations: 489.3 kB / 345.4 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.161e-05/0.1544, allocations: 90.3 kB / 345.5 MB, free: 2.707 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002125/0.1547, allocations: 116 kB / 345.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.1568, allocations: 1.007 MB / 346.6 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-05/0.1568, allocations: 7.906 kB / 346.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.1569, allocations: 44 kB / 346.7 MB, free: 1.508 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.157, allocations: 28 kB / 346.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.159, allocations: 1.044 MB / 347.8 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006613/0.1656, allocations: 3.877 MB / 351.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002141/0.1678, allocations: 2.044 MB / 353.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008013/0.1686, allocations: 456 kB / 354.1 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.1688, allocations: 102.1 kB / 354.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008832/0.1697, allocations: 470.5 kB / 354.7 MB, free: 8.965 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 2.986e-06/0.1697, allocations: 4 kB / 354.7 MB, free: 8.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=127): time 0.009271/0.179, allocations: 4.057 MB / 358.8 MB, free: 4.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.1792, allocations: 141.5 kB / 358.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005841/0.1797, allocations: 405.8 kB / 359.3 MB, free: 4.215 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001399/0.1799, allocations: 53.64 kB / 359.3 MB, free: 4.156 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/0.1803, allocations: 443.5 kB / 359.8 MB, free: 3.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000338/0.1806, allocations: 437.7 kB / 360.2 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.067e-05/0.1807, allocations: 24 kB / 360.2 MB, free: 3.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1809, allocations: 386.6 kB / 360.6 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006953/0.1816, allocations: 358.5 kB / 360.9 MB, free: 2.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008485/0.1824, allocations: 0.5837 MB / 361.5 MB, free: 1.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008422/0.1833, allocations: 450.7 kB / 362 MB, free: 1.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1833, allocations: 0 / 362 MB, free: 1.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002552/0.1859, allocations: 1.429 MB / 363.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.1859, allocations: 8 kB / 363.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.1859, allocations: 7.984 kB / 363.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009167/0.1869, allocations: 355.1 kB / 363.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009182/0.1878, allocations: 219.6 kB / 364 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007806/0.1956, allocations: 7.732 MB / 371.7 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000894/0.1965, allocations: 47.98 kB / 371.8 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.464e-05/0.1967, allocations: 51.98 kB / 371.8 MB, free: 7.004 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005522/0.1972, allocations: 261.7 kB / 372.1 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.1973, allocations: 75.11 kB / 372.1 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002566/0.1999, allocations: 1.329 MB / 373.5 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.2, allocations: 16 kB / 373.5 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.2, allocations: 8 kB / 373.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.2, allocations: 7.984 kB / 373.5 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004315/0.2043, allocations: 2.565 MB / 376.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.2044, allocations: 0 / 376.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006617/0.205, allocations: 151.8 kB / 376.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007856/0.2058, allocations: 319.4 kB / 376.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.432e-05/0.2059, allocations: 27.98 kB / 376.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2061/0.4121, allocations: 7.427 MB / 384 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.4121, allocations: 2.453 kB / 384 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00322/0.4153, allocations: 1.833 MB / 385.8 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003344/0.4157, allocations: 233.7 kB / 386 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.382e-05/0.4158, allocations: 22.69 kB / 386.1 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.4162, allocations: 42.89 kB / 386.1 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.4165, allocations: 98.94 kB / 386.2 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.995e-05/0.4166, allocations: 36.66 kB / 386.2 MB, free: 45.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003002/0.4169, allocations: 276.5 kB / 386.5 MB, free: 45.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4169, allocations: 0 / 386.5 MB, free: 45.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001213/0.4181, allocations: 324.2 kB / 386.8 MB, free: 45.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 19,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000288/0.4184, allocations: 167.2 kB / 387 MB, free: 45.46 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002883/0.4213, allocations: 1.652 MB / 388.6 MB, free: 44.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4213, allocations: 0 / 388.6 MB, free: 44.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001696/0.423, allocations: 1.141 MB / 389.8 MB, free: 43.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007053/0.4237, allocations: 82.27 kB / 389.9 MB, free: 43.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004071/0.4278, allocations: 2.436 MB / 392.3 MB, free: 42.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007277/0.4286, allocations: 1.026 MB / 393.3 MB, free: 41.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005756/0.4291, allocations: 108 kB / 393.4 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.4293, allocations: 62.12 kB / 393.5 MB, free: 41.65 MB / 318.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4293, allocations: 0 / 393.5 MB, free: 41.65 MB / 318.1 MB Notification: Performance of Templates: time 0.01783/0.4472, allocations: 10.13 MB / 403.6 MB, free: 38.46 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches