Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001085, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001145/0.001145, allocations: 190.9 kB / 18.62 MB, free: 4.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009772/0.0009772, allocations: 46.59 kB / 302 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.107, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.00413/0.1112, allocations: 2.738 MB / 354.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.1126, allocations: 0.8722 MB / 355.1 MB, free: 68 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.1128, allocations: 4 kB / 355.1 MB, free: 64 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.1131, allocations: 59.48 kB / 355.2 MB, free: 4 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003251/0.1134, allocations: 103.2 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000287/0.1137, allocations: 107.7 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003833/0.1141, allocations: 346.6 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.1143, allocations: 109.7 kB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.1145, allocations: 143.5 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.1147, allocations: 147.3 kB / 356.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.105e-05/0.1148, allocations: 32 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.486e-05/0.1149, allocations: 32 kB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.1149, allocations: 67.77 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.1151, allocations: 155.2 kB / 356.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.1154, allocations: 354.7 kB / 356.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1154, allocations: 0 / 356.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1154, allocations: 0 / 356.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1154, allocations: 0 / 356.7 MB, free: 14.43 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.0009614/0.1164, allocations: 0.6003 MB / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1164, allocations: 11.89 kB / 357.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.112e-05/0.1165, allocations: 32.56 kB / 357.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.1169, allocations: 272 kB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.1169, allocations: 20.94 kB / 357.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.251e-05/0.1169, allocations: 28.38 kB / 357.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004462/0.1174, allocations: 261.1 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1174, allocations: 0 / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.1174, allocations: 12 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1174, allocations: 4 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004407/0.1179, allocations: 210.1 kB / 358.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.1194, allocations: 1.005 MB / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003925/0.1198, allocations: 210.4 kB / 359.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.12, allocations: 108.8 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.1201, allocations: 0 / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.1201, allocations: 38.97 kB / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.052e-06/0.1201, allocations: 0 / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.004787/0.1249, allocations: 1.531 MB / 361 MB, free: 9.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.1249, allocations: 63.34 kB / 361.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.1252, allocations: 224.9 kB / 361.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.1252, allocations: 33.7 kB / 361.4 MB, free: 9.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.1253, allocations: 184.1 kB / 361.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.463e-05/0.1254, allocations: 114.3 kB / 361.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.1255, allocations: 73.91 kB / 361.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1256, allocations: 334.8 kB / 362.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.1259, allocations: 112.7 kB / 362.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.1261, allocations: 161.4 kB / 362.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004663/0.1266, allocations: 284 kB / 362.6 MB, free: 8.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1266, allocations: 0 / 362.6 MB, free: 8.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001463/0.1281, allocations: 0.5332 MB / 363.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1281, allocations: 4 kB / 363.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1281, allocations: 3.938 kB / 363.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/0.1293, allocations: 249.4 kB / 363.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.1296, allocations: 55.91 kB / 363.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004495/0.1341, allocations: 4.129 MB / 367.6 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.1343, allocations: 16.02 kB / 367.6 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/0.1343, allocations: 15.98 kB / 367.6 MB, free: 2.914 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.0001596/0.1345, allocations: 149.7 kB / 367.7 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.1345, allocations: 31.62 kB / 367.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.182e-05/0.1346, allocations: 42.95 kB / 367.8 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1346, allocations: 8.062 kB / 367.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.1347, allocations: 0 / 367.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1347, allocations: 3.984 kB / 367.8 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001928/0.1366, allocations: 0.9783 MB / 368.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1366, allocations: 0 / 368.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.1368, allocations: 43.97 kB / 368.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001132/0.138, allocations: 237.5 kB / 369.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.138, allocations: 11.98 kB / 369.1 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1562/0.2942, allocations: 4.112 MB / 373.2 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.2943, allocations: 1.812 kB / 373.2 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.2961, allocations: 0.7361 MB / 373.9 MB, free: 22.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.818e-05/0.2961, allocations: 101 kB / 374 MB, free: 22.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.2962, allocations: 6.188 kB / 374 MB, free: 22.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.2964, allocations: 16.66 kB / 374.1 MB, free: 22.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.411e-05/0.2965, allocations: 35.34 kB / 374.1 MB, free: 22.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.2966, allocations: 13.3 kB / 374.1 MB, free: 22.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000146/0.2967, allocations: 161.3 kB / 374.3 MB, free: 22.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2967, allocations: 0 / 374.3 MB, free: 22.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006027/0.2973, allocations: 102.3 kB / 374.4 MB, free: 22.32 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.0001122/0.2975, allocations: 105 kB / 374.5 MB, free: 22.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009352/0.2984, allocations: 0.5726 MB / 375 MB, free: 21.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.2984, allocations: 1.25 kB / 375 MB, free: 21.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005594/0.299, allocations: 433.7 kB / 375.5 MB, free: 21.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.2993, allocations: 30.78 kB / 375.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.3005, allocations: 0.6908 MB / 376.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.3008, allocations: 0.7849 MB / 377 MB, free: 20.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.489e-05/0.3009, allocations: 20.66 kB / 377 MB, free: 20.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.3009, allocations: 17.81 kB / 377 MB, free: 20.54 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3009, allocations: 0 / 377 MB, free: 20.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01066/0.3116, allocations: 5.429 MB / 382.4 MB, free: 19.94 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches