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.00106/0.00106, allocations: 108.5 kB / 16.51 MB, free: 6.707 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.001005/0.001006, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.277/1.277, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009826/0.0009825, allocations: 42.33 kB / 300 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08143/0.08243, allocations: 49.45 MB / 349.4 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003781/0.08625, allocations: 2.78 MB / 352.2 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.08756, allocations: 0.8568 MB / 353 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.08775, allocations: 7.938 kB / 353 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002509/0.08802, allocations: 47.69 kB / 353.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.08833, allocations: 91.42 kB / 353.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.08861, allocations: 87.86 kB / 353.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003828/0.089, allocations: 334.6 kB / 353.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.08919, allocations: 98.22 kB / 353.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002193/0.08942, allocations: 119.5 kB / 353.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.08963, allocations: 151.3 kB / 354 MB, free: 188 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.724e-05/0.08968, allocations: 20 kB / 354 MB, free: 168 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.085e-05/0.08975, allocations: 20 kB / 354 MB, free: 148 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.421e-05/0.08981, allocations: 55.77 kB / 354 MB, free: 92 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.08997, allocations: 143.2 kB / 354.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003084/0.09029, allocations: 343 kB / 354.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.0903, allocations: 0 / 354.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.09031, allocations: 0 / 354.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.09032, allocations: 0 / 354.5 MB, free: 15.61 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.001059/0.09139, allocations: 0.6003 MB / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.09143, allocations: 8.031 kB / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.909e-05/0.09152, allocations: 36.56 kB / 355.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.09182, allocations: 260.3 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.09185, allocations: 28.88 kB / 355.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.0919, allocations: 24.38 kB / 355.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.09239, allocations: 253.2 kB / 355.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.09241, allocations: 3.938 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.675e-05/0.09245, allocations: 15.94 kB / 355.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.09247, allocations: 4 kB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004391/0.09291, allocations: 206.1 kB / 355.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.0945, allocations: 1.009 MB / 357 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/0.09493, allocations: 202.5 kB / 357.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002536/0.0952, allocations: 116.9 kB / 357.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.09524, allocations: 0 / 357.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.09527, allocations: 42.95 kB / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.122e-06/0.09528, allocations: 0 / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.005117/0.1004, allocations: 1.531 MB / 358.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.1004, allocations: 63.34 kB / 358.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.1007, allocations: 228.9 kB / 359.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.1007, allocations: 29.7 kB / 359.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.1008, allocations: 180.2 kB / 359.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.872e-05/0.1009, allocations: 126.2 kB / 359.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.101, allocations: 65.98 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1011, allocations: 334.8 kB / 359.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.1014, allocations: 116.7 kB / 360 MB, free: 9.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/0.1017, allocations: 165.4 kB / 360.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005027/0.1022, allocations: 280 kB / 360.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1022, allocations: 3.984 kB / 360.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001552/0.1038, allocations: 0.5256 MB / 360.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.1038, allocations: 8 kB / 360.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1038, allocations: 0 / 360.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.1051, allocations: 245.4 kB / 361.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.1054, allocations: 59.89 kB / 361.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004335/0.1097, allocations: 3.728 MB / 365 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.11, allocations: 12 kB / 365 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.11, allocations: 16.05 kB / 365 MB, free: 4.512 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.0001478/0.1102, allocations: 152.5 kB / 365.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.602e-05/0.1102, allocations: 31.62 kB / 365.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.653e-05/0.1103, allocations: 42.95 kB / 365.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1103, allocations: 7.938 kB / 365.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1104, allocations: 0 / 365.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1104, allocations: 0 / 365.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002065/0.1124, allocations: 0.9861 MB / 366.2 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1124, allocations: 3.984 kB / 366.2 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.1127, allocations: 43.97 kB / 366.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/0.1139, allocations: 245.7 kB / 366.5 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.1139, allocations: 15.94 kB / 366.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1397/0.2537, allocations: 3.7 MB / 370.2 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2537, allocations: 0.9375 kB / 370.2 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.2555, allocations: 0.7253 MB / 370.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.733e-05/0.2556, allocations: 105.4 kB / 371 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.759e-05/0.2556, allocations: 11.41 kB / 371 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.2559, allocations: 10.7 kB / 371.1 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.812e-05/0.256, allocations: 33 kB / 371.1 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.256, allocations: 10.64 kB / 371.1 MB, free: 23.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.2561, allocations: 167 kB / 371.3 MB, free: 23.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2561, allocations: 0 / 371.3 MB, free: 23.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005929/0.2567, allocations: 102.3 kB / 371.4 MB, free: 23.54 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 9.626e-05/0.2568, allocations: 103.1 kB / 371.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008711/0.2577, allocations: 0.5712 MB / 372 MB, free: 23.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2577, allocations: 0 / 372 MB, free: 23.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004897/0.2582, allocations: 426.3 kB / 372.4 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.2586, allocations: 24.77 kB / 372.5 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.2597, allocations: 0.8361 MB / 373.3 MB, free: 22.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.26, allocations: 0.7784 MB / 374.1 MB, free: 21.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.2601, allocations: 21.72 kB / 374.1 MB, free: 21.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.758e-05/0.2601, allocations: 20.16 kB / 374.1 MB, free: 21.88 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2601, allocations: 0 / 374.1 MB, free: 21.88 MB / 302.1 MB Notification: Performance of Templates: time 0.009067/0.2692, allocations: 5.142 MB / 379.3 MB, free: 21.64 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins/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