Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001841/0.001841, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009163/0.0009163, allocations: 96.92 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.29e-05/1.292e-05, allocations: 4 kB / 343.7 MB, free: 8.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1016, allocations: 51.48 MB / 395.2 MB, free: 4.746 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.392/0.4936, allocations: 93.38 MB / 488.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.4939, allocations: 81.95 kB / 488.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07647/0.5704, allocations: 31.23 MB / 0.5077 GB, free: 5.504 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5704, allocations: 0 / 0.5077 GB, free: 5.504 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.192e-05/0.5705, allocations: 16 kB / 0.5077 GB, free: 5.488 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003863/0.5743, allocations: 1.245 MB / 0.5089 GB, free: 4.195 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.5744, allocations: 12.03 kB / 0.5089 GB, free: 4.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002744/0.5771, allocations: 406.3 kB / 0.5093 GB, free: 3.785 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.5782, allocations: 0.4883 MB / 0.5098 GB, free: 3.258 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/0.5783, allocations: 36 kB / 0.5098 GB, free: 3.223 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002628/0.5786, allocations: 68 kB / 0.5099 GB, free: 3.156 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002069/0.5807, allocations: 0.8479 MB / 0.5107 GB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.5828, allocations: 0.7478 MB / 0.5115 GB, free: 1.531 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-05/0.5828, allocations: 7.891 kB / 0.5115 GB, free: 1.523 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.5829, allocations: 4 kB / 0.5115 GB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.616e-05/0.583, allocations: 28 kB / 0.5115 GB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0066/0.5896, allocations: 3.624 MB / 0.515 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.5914, allocations: 1.467 MB / 0.5165 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000663/0.5921, allocations: 391.7 kB / 0.5168 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001899/0.5923, allocations: 179 kB / 0.517 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006989/0.593, allocations: 436.4 kB / 0.5174 GB, free: 10.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.108e-06/0.593, allocations: 0 / 0.5174 GB, free: 10.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.009716/0.6028, allocations: 3.729 MB / 0.5211 GB, free: 7.164 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.6029, allocations: 226.9 kB / 0.5213 GB, free: 6.895 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003744/0.6033, allocations: 302.2 kB / 0.5216 GB, free: 6.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.891e-05/0.6034, allocations: 25.7 kB / 0.5216 GB, free: 6.559 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000371/0.6038, allocations: 427.6 kB / 0.522 GB, free: 6.133 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003129/0.6041, allocations: 394 kB / 0.5224 GB, free: 5.742 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.6041, allocations: 0 / 0.5224 GB, free: 5.742 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.6043, allocations: 380.8 kB / 0.5227 GB, free: 5.363 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.6048, allocations: 290.6 kB / 0.523 GB, free: 5.078 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006303/0.6055, allocations: 496.9 kB / 0.5235 GB, free: 4.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.6072, allocations: 0.5931 MB / 0.5241 GB, free: 3.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.6072, allocations: 0 / 0.5241 GB, free: 3.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003184/0.6104, allocations: 1.415 MB / 0.5255 GB, free: 2.496 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.6104, allocations: 8 kB / 0.5255 GB, free: 2.488 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.6105, allocations: 7.984 kB / 0.5255 GB, free: 2.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008757/0.6114, allocations: 336.6 kB / 0.5258 GB, free: 2.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008811/0.6122, allocations: 199.7 kB / 0.526 GB, free: 1.945 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007018/0.6193, allocations: 7.353 MB / 0.5332 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008096/0.6201, allocations: 27.98 kB / 0.5332 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.6203, allocations: 48 kB / 0.5332 GB, free: 10.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000233/0.6205, allocations: 122 kB / 0.5333 GB, free: 9.941 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.6207, allocations: 71.16 kB / 0.5334 GB, free: 9.871 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/0.6239, allocations: 1.316 MB / 0.5347 GB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.6239, allocations: 12 kB / 0.5347 GB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.6239, allocations: 8 kB / 0.5347 GB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.6239, allocations: 13.84 kB / 0.5347 GB, free: 8.504 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004691/0.6286, allocations: 2.578 MB / 0.5373 GB, free: 5.863 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.6286, allocations: 0 / 0.5373 GB, free: 5.863 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006946/0.6293, allocations: 151.8 kB / 0.5374 GB, free: 5.715 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007903/0.6302, allocations: 329.5 kB / 0.5377 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-05/0.6302, allocations: 7.984 kB / 0.5377 GB, free: 5.375 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007143/0.6374, allocations: 7.078 MB / 0.5446 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.6374, allocations: 4.031 kB / 0.5446 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004449/0.6419, allocations: 1.846 MB / 0.5464 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003772/0.6423, allocations: 220.2 kB / 0.5466 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.6424, allocations: 7.984 kB / 0.5467 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005523/0.643, allocations: 15.98 kB / 0.5467 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.6432, allocations: 89.19 kB / 0.5468 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.725e-05/0.6432, allocations: 39.98 kB / 0.5468 GB, free: 11.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002786/0.6435, allocations: 228.6 kB / 0.547 GB, free: 11.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6435, allocations: 0 / 0.547 GB, free: 11.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001268/0.6448, allocations: 268 kB / 0.5473 GB, free: 11.06 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * 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%) 2,(2,100.0%) 18,(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.0003752/0.6452, allocations: 191.9 kB / 0.5474 GB, free: 10.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002325/0.6475, allocations: 1.458 MB / 0.5489 GB, free: 9.367 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6476, allocations: 4 kB / 0.5489 GB, free: 9.363 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.649, allocations: 1.033 MB / 0.5499 GB, free: 8.293 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003911/0.6494, allocations: 29.28 kB / 0.5499 GB, free: 8.266 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.6527, allocations: 1.407 MB / 0.5513 GB, free: 6.824 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008107/0.6535, allocations: 1.044 MB / 0.5523 GB, free: 5.754 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005282/0.6541, allocations: 101.9 kB / 0.5524 GB, free: 5.652 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.6542, allocations: 47.42 kB / 0.5524 GB, free: 5.605 MB / 426.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6542, allocations: 0 / 0.5524 GB, free: 5.605 MB / 426.7 MB Notification: Performance of Templates: time 0.01894/0.6732, allocations: 9.568 MB / 0.5618 GB, free: 12.13 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches