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.001037/0.001036, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001275/0.001275, allocations: 184.3 kB / 17.57 MB, free: 6.199 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.315/1.315, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002611/0.0002611, allocations: 7.938 kB / 301.4 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.09152, allocations: 50.42 MB / 351.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002847/0.09441, allocations: 2.417 MB / 354.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.09564, allocations: 0.8102 MB / 355.1 MB, free: 204 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.09578, allocations: 4 kB / 355.1 MB, free: 200 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002174/0.09601, allocations: 51.69 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002472/0.09627, allocations: 91.36 kB / 355.2 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.09651, allocations: 87.86 kB / 355.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003169/0.09683, allocations: 326.6 kB / 355.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.09702, allocations: 98.23 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.0972, allocations: 119.5 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.09738, allocations: 135.3 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.867e-05/0.09743, allocations: 16 kB / 356 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.675e-05/0.09747, allocations: 12 kB / 356 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.09753, allocations: 63.7 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.09767, allocations: 165 kB / 356.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.09796, allocations: 326.9 kB / 356.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.09797, allocations: 4 kB / 356.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.09798, allocations: 0 / 356.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.09799, allocations: 0 / 356.5 MB, free: 14.72 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.0008603/0.09886, allocations: 0.5574 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.0989, allocations: 8.031 kB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.323e-05/0.09897, allocations: 32.56 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.09926, allocations: 264.3 kB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.0993, allocations: 16.94 kB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.09935, allocations: 32.38 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/0.09985, allocations: 261.2 kB / 357.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.09988, allocations: 0 / 357.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.09991, allocations: 8 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.09993, allocations: 8 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004545/0.1004, allocations: 218.1 kB / 357.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.102, allocations: 1.017 MB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004439/0.1024, allocations: 201.8 kB / 359.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.1027, allocations: 112.8 kB / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.1027, allocations: 4 kB / 359.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.1028, allocations: 42.97 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.1028, allocations: 3.938 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.005157/0.1079, allocations: 1.558 MB / 360.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.108, allocations: 59.34 kB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.1082, allocations: 221 kB / 361.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.1082, allocations: 33.7 kB / 361.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.1083, allocations: 188.1 kB / 361.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.178e-05/0.1084, allocations: 118.2 kB / 361.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.1085, allocations: 37.7 kB / 361.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1086, allocations: 334.8 kB / 361.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.1089, allocations: 112.7 kB / 361.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.1091, allocations: 165.5 kB / 362.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005174/0.1097, allocations: 284 kB / 362.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1097, allocations: 4 kB / 362.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001629/0.1113, allocations: 0.5295 MB / 362.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1113, allocations: 8 kB / 362.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1114, allocations: 0 / 362.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/0.1128, allocations: 253.5 kB / 363.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.1131, allocations: 63.89 kB / 363.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004679/0.1178, allocations: 3.748 MB / 367 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.1181, allocations: 20.09 kB / 367 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.1182, allocations: 8 kB / 367 MB, free: 3.609 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.0001908/0.1184, allocations: 152.9 kB / 367.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.566e-05/0.1184, allocations: 39.55 kB / 367.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.613e-05/0.1185, allocations: 34.97 kB / 367.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.1185, allocations: 7.938 kB / 367.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1185, allocations: 4 kB / 367.2 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1186, allocations: 3.984 kB / 367.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.1207, allocations: 0.9938 MB / 368.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.1207, allocations: 4 kB / 368.2 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002092/0.121, allocations: 51.98 kB / 368.3 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/0.1224, allocations: 241.4 kB / 368.5 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.1224, allocations: 23.92 kB / 368.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1715/0.294, allocations: 3.722 MB / 372.3 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.294, allocations: 1.219 kB / 372.3 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.2959, allocations: 0.7348 MB / 373 MB, free: 22.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.776e-05/0.296, allocations: 102.8 kB / 373.1 MB, free: 22.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/0.296, allocations: 7.094 kB / 373.1 MB, free: 22.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.2963, allocations: 16.06 kB / 373.1 MB, free: 22.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.2964, allocations: 36.22 kB / 373.2 MB, free: 22.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.2964, allocations: 8.625 kB / 373.2 MB, free: 22.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.2966, allocations: 167.8 kB / 373.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2966, allocations: 0 / 373.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006082/0.2972, allocations: 102.1 kB / 373.4 MB, free: 22.36 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.0001156/0.2973, allocations: 107.1 kB / 373.5 MB, free: 22.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009989/0.2983, allocations: 0.5677 MB / 374.1 MB, free: 22.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2983, allocations: 0.8438 kB / 374.1 MB, free: 22.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005569/0.2989, allocations: 437.2 kB / 374.5 MB, free: 21.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.2993, allocations: 27.62 kB / 374.6 MB, free: 21.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.301, allocations: 0.8811 MB / 375.4 MB, free: 21.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.3014, allocations: 0.7772 MB / 376.2 MB, free: 20.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.3015, allocations: 23.55 kB / 376.2 MB, free: 20.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.993e-05/0.3016, allocations: 23.16 kB / 376.3 MB, free: 20.67 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3016, allocations: 0 / 376.3 MB, free: 20.67 MB / 302.1 MB Notification: Performance of Templates: time 0.01057/0.3122, allocations: 5.234 MB / 381.5 MB, free: 20.23 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