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.0009564/0.0009564, allocations: 111.5 kB / 16.63 MB, free: 6.961 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.001091/0.001091, allocations: 190 kB / 17.55 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.299/1.299, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009459/0.0009459, allocations: 48.48 kB / 300.1 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.09077, allocations: 49.43 MB / 349.6 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003645/0.09445, allocations: 2.787 MB / 352.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.0957, allocations: 0.8645 MB / 353.2 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.09583, allocations: 4 kB / 353.2 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002139/0.09605, allocations: 43.69 kB / 353.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002399/0.09631, allocations: 95.36 kB / 353.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.09654, allocations: 83.92 kB / 353.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.0969, allocations: 350.6 kB / 353.8 MB, free: 324 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.09711, allocations: 109.7 kB / 353.9 MB, free: 212 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.09728, allocations: 139.5 kB / 354 MB, free: 72 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.09748, allocations: 155.4 kB / 354.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.09753, allocations: 28 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.503e-05/0.09758, allocations: 28 kB / 354.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.265e-05/0.09765, allocations: 67.67 kB / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.09777, allocations: 155.2 kB / 354.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003122/0.09809, allocations: 354.9 kB / 354.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.0981, allocations: 4 kB / 354.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09811, allocations: 0 / 354.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.09812, allocations: 0 / 354.8 MB, free: 15.29 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.0009395/0.09907, allocations: 0.6003 MB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.09911, allocations: 11.89 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.352e-05/0.09919, allocations: 32.56 kB / 355.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.09951, allocations: 256.3 kB / 355.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.09954, allocations: 24.94 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.384e-05/0.09959, allocations: 28.38 kB / 355.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.1001, allocations: 253.1 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1001, allocations: 4 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.1001, allocations: 11.98 kB / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.1001, allocations: 8 kB / 356 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.1006, allocations: 210.1 kB / 356.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.1022, allocations: 1.009 MB / 357.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000429/0.1026, allocations: 205.5 kB / 357.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.1029, allocations: 112.8 kB / 357.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.1029, allocations: 4 kB / 357.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.103, allocations: 30.97 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.763e-06/0.103, allocations: 0 / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.005264/0.1083, allocations: 1.546 MB / 359.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.1083, allocations: 59.34 kB / 359.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.1086, allocations: 232.9 kB / 359.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.1086, allocations: 29.7 kB / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.1088, allocations: 184.2 kB / 359.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.419e-05/0.1089, allocations: 122.2 kB / 359.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.1091, allocations: 65.98 kB / 359.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1092, allocations: 334.8 kB / 360.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.1095, allocations: 108.7 kB / 360.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.1097, allocations: 157.5 kB / 360.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005056/0.1102, allocations: 280 kB / 360.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1103, allocations: 0 / 360.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001605/0.1119, allocations: 0.5373 MB / 361.2 MB, free: 8.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.1119, allocations: 7.938 kB / 361.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1119, allocations: 4 kB / 361.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.1133, allocations: 241.4 kB / 361.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.1136, allocations: 55.91 kB / 361.5 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004947/0.1185, allocations: 4.146 MB / 365.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.1188, allocations: 11.94 kB / 365.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.1189, allocations: 12 kB / 365.7 MB, free: 3.773 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.0001795/0.119, allocations: 164.9 kB / 365.8 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.742e-05/0.1191, allocations: 31.61 kB / 365.9 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.048e-05/0.1192, allocations: 34.97 kB / 365.9 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1192, allocations: 4 kB / 365.9 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.1192, allocations: 0 / 365.9 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.1192, allocations: 7.984 kB / 365.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.1215, allocations: 0.9821 MB / 366.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1215, allocations: 0 / 366.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.1217, allocations: 43.91 kB / 366.9 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.123, allocations: 241.5 kB / 367.2 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.123, allocations: 8 kB / 367.2 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1459/0.269, allocations: 4.121 MB / 371.3 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.269, allocations: 3.656 kB / 371.3 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.271, allocations: 0.7254 MB / 372 MB, free: 23.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.088e-05/0.2711, allocations: 100.3 kB / 372.1 MB, free: 23.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/0.2711, allocations: 13.81 kB / 372.1 MB, free: 23.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.2714, allocations: 12.95 kB / 372.2 MB, free: 23.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.2715, allocations: 27.91 kB / 372.2 MB, free: 23.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.2715, allocations: 11.27 kB / 372.2 MB, free: 23.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.2717, allocations: 166.3 kB / 372.4 MB, free: 23.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2717, allocations: 0 / 372.4 MB, free: 23.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006676/0.2724, allocations: 98.5 kB / 372.4 MB, free: 23.27 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.0001463/0.2726, allocations: 116.8 kB / 372.6 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.2737, allocations: 0.5742 MB / 373.1 MB, free: 22.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.2737, allocations: 3.125 kB / 373.1 MB, free: 22.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005936/0.2743, allocations: 428.6 kB / 373.6 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.2747, allocations: 25.55 kB / 373.6 MB, free: 22.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.2763, allocations: 0.8328 MB / 374.4 MB, free: 22.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.2766, allocations: 0.7774 MB / 375.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.2768, allocations: 20.33 kB / 375.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.278e-05/0.2768, allocations: 19 kB / 375.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of SimCode: time 5.2e-07/0.2768, allocations: 0 / 375.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of Templates: time 0.0118/0.2886, allocations: 5.406 MB / 380.6 MB, free: 21.04 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