Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001776/0.001776, allocations: 116.9 kB / 18.4 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002337/0.002337, allocations: 200.6 kB / 19.34 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.81 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004456/0.1064, allocations: 2.755 MB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.1083, allocations: 0.9501 MB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.1084, allocations: 4 kB / 362.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.1088, allocations: 63.44 kB / 362.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003028/0.1091, allocations: 103.2 kB / 362.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.1094, allocations: 115.8 kB / 362.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004783/0.1099, allocations: 354.6 kB / 363.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.1101, allocations: 117.6 kB / 363.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.1104, allocations: 143.4 kB / 363.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.1106, allocations: 147.3 kB / 363.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.345e-05/0.1106, allocations: 32 kB / 363.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.508e-05/0.1107, allocations: 36 kB / 363.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.596e-05/0.1108, allocations: 71.69 kB / 363.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.1109, allocations: 151.2 kB / 363.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004221/0.1114, allocations: 374.6 kB / 364.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.1114, allocations: 0 / 364.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1114, allocations: 4 kB / 364.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.1114, allocations: 4 kB / 364.3 MB, free: 7.922 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001067/0.1125, allocations: 0.604 MB / 364.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1125, allocations: 12.03 kB / 364.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.1127, allocations: 44.55 kB / 364.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000464/0.1132, allocations: 260.7 kB / 365.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.1132, allocations: 24.92 kB / 365.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.522e-05/0.1133, allocations: 28.38 kB / 365.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005605/0.1139, allocations: 249.2 kB / 365.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1139, allocations: 0 / 365.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.1139, allocations: 12 kB / 365.5 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.1139, allocations: 12 kB / 365.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004906/0.1144, allocations: 210.1 kB / 365.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.1163, allocations: 0.9975 MB / 366.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.1167, allocations: 205.9 kB / 366.9 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002402/0.117, allocations: 117.2 kB / 367 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.117, allocations: 8 kB / 367 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.1171, allocations: 38.42 kB / 367.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.1171, allocations: 0 / 367.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.004944/0.122, allocations: 1.549 MB / 368.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.1221, allocations: 59.34 kB / 368.7 MB, free: 3.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.1224, allocations: 233 kB / 368.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.1224, allocations: 29.7 kB / 368.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1225, allocations: 192.1 kB / 369.1 MB, free: 2.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.833e-05/0.1226, allocations: 122.3 kB / 369.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.1227, allocations: 65.98 kB / 369.3 MB, free: 2.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1228, allocations: 334.8 kB / 369.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002245/0.1231, allocations: 108.6 kB / 369.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002613/0.1233, allocations: 165.7 kB / 369.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004842/0.1238, allocations: 275.8 kB / 370.2 MB, free: 1.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1238, allocations: 0 / 370.2 MB, free: 1.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001548/0.1254, allocations: 0.5334 MB / 370.7 MB, free: 1.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1254, allocations: 8 kB / 370.7 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1254, allocations: 0 / 370.7 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.1267, allocations: 245.5 kB / 371 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.127, allocations: 63.89 kB / 371 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1878/0.3148, allocations: 4.129 MB / 375.2 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.3151, allocations: 10.28 kB / 375.2 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.3151, allocations: 13.78 kB / 375.2 MB, free: 17.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.3153, allocations: 151.1 kB / 375.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.873e-05/0.3154, allocations: 25.5 kB / 375.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.876e-05/0.3155, allocations: 40.3 kB / 375.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3155, allocations: 6.812 kB / 375.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.3155, allocations: 3.5 kB / 375.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.3155, allocations: 5.75 kB / 375.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/0.3176, allocations: 0.9865 MB / 376.4 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3176, allocations: 2.219 kB / 376.4 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.3178, allocations: 49.09 kB / 376.4 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.319, allocations: 235.8 kB / 376.7 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/0.319, allocations: 14 kB / 376.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003783/0.3228, allocations: 4.121 MB / 380.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3228, allocations: 5.312 kB / 380.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.3246, allocations: 0.7233 MB / 381.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.711e-05/0.3246, allocations: 101.7 kB / 381.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.3247, allocations: 15.25 kB / 381.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.3249, allocations: 12.47 kB / 381.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.325, allocations: 32.55 kB / 381.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3251, allocations: 7.281 kB / 381.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000155/0.3252, allocations: 174 kB / 381.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3252, allocations: 1.406 kB / 381.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008443/0.3261, allocations: 102.8 kB / 382 MB, free: 12.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001323/0.3262, allocations: 105.1 kB / 382.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009469/0.3272, allocations: 0.5643 MB / 382.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3272, allocations: 0 / 382.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000545/0.3277, allocations: 430.6 kB / 383.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/0.3282, allocations: 25.59 kB / 383.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.3294, allocations: 0.7031 MB / 383.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.3296, allocations: 0.7786 MB / 384.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.041e-05/0.3297, allocations: 24.23 kB / 384.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.691e-05/0.3298, allocations: 18.41 kB / 384.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3298, allocations: 0 / 384.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of Templates: time 0.01079/0.3406, allocations: 5.443 MB / 390.1 MB, free: 9.496 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches