Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001188/0.001189, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.34/1.34, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009926/0.0009928, allocations: 51.48 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09031/0.09132, allocations: 49.45 MB / 350.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003716/0.09509, allocations: 2.022 MB / 352.8 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.09623, allocations: 0.5805 MB / 353.3 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.09636, allocations: 4 kB / 353.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.363e-05/0.09647, allocations: 23.78 kB / 353.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.09663, allocations: 39.62 kB / 353.4 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003879/0.09703, allocations: 91.8 kB / 353.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002478/0.09728, allocations: 183.2 kB / 353.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.09746, allocations: 45.47 kB / 353.7 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.09769, allocations: 91.62 kB / 353.8 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.09784, allocations: 67.75 kB / 353.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.287e-05/0.0979, allocations: 16 kB / 353.9 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.542e-05/0.09794, allocations: 16 kB / 353.9 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.72e-05/0.09799, allocations: 39.83 kB / 353.9 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.071e-05/0.09809, allocations: 75.61 kB / 354 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.09832, allocations: 171.6 kB / 354.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.09834, allocations: 0 / 354.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.09835, allocations: 4 kB / 354.2 MB, free: 0.918 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.09836, allocations: 0 / 354.2 MB, free: 0.918 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0009327/0.0993, allocations: 474.8 kB / 354.6 MB, free: 416 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.09936, allocations: 12.03 kB / 354.7 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.151e-05/0.09943, allocations: 16.75 kB / 354.7 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.09965, allocations: 196.1 kB / 354.9 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.09968, allocations: 12.38 kB / 354.9 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.069e-05/0.09971, allocations: 8.375 kB / 354.9 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003688/0.1001, allocations: 156 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1001, allocations: 0 / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/0.1001, allocations: 4 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1002, allocations: 4 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.1004, allocations: 99.88 kB / 355.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009609/0.1014, allocations: 0.507 MB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.1017, allocations: 102.5 kB / 355.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.102, allocations: 68.83 kB / 355.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.102, allocations: 4 kB / 355.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.102, allocations: 34.5 kB / 355.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.102, allocations: 4 kB / 355.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004903/0.1025, allocations: 149.8 kB / 356 MB, free: 14.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.1026, allocations: 106.8 kB / 356.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.1028, allocations: 158.2 kB / 356.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.1028, allocations: 25.7 kB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.457e-05/0.1029, allocations: 127.8 kB / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.976e-05/0.1029, allocations: 23.66 kB / 356.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-05/0.103, allocations: 37.62 kB / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1031, allocations: 318.8 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.1032, allocations: 39.97 kB / 356.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.1034, allocations: 80.2 kB / 356.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.1037, allocations: 106.5 kB / 357 MB, free: 13.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1037, allocations: 0 / 357 MB, free: 13.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003533/0.1041, allocations: 153.5 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.1041, allocations: 7.938 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1041, allocations: 0 / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1041, allocations: 4 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005921/0.1047, allocations: 87.89 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.1062, allocations: 1.496 MB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.1064, allocations: 20.05 kB / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.1064, allocations: 7.938 kB / 358.8 MB, free: 11.9 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.1065, allocations: 121.8 kB / 358.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.1066, allocations: 7.906 kB / 358.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004635/0.107, allocations: 159.1 kB / 359.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1071, allocations: 0 / 359.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.1071, allocations: 7.938 kB / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1071, allocations: 0 / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007434/0.1078, allocations: 468 kB / 359.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1078, allocations: 0 / 359.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.108, allocations: 27.98 kB / 359.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002004/0.1082, allocations: 28.77 kB / 359.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.1082, allocations: 4 kB / 359.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.1093, allocations: 1.395 MB / 361 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1093, allocations: 3.938 kB / 361 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005812/0.1099, allocations: 297 kB / 361.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/0.11, allocations: 88.98 kB / 361.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.11, allocations: 7.875 kB / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.1102, allocations: 24.05 kB / 361.4 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.938e-05/0.1102, allocations: 3.984 kB / 361.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.1103, allocations: 4 kB / 361.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.676e-05/0.1104, allocations: 128.9 kB / 361.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1104, allocations: 0 / 361.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003113/0.1107, allocations: 39.94 kB / 361.6 MB, free: 8.852 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001296/0.1108, allocations: 99.19 kB / 361.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006977/0.1115, allocations: 148.2 kB / 361.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1115, allocations: 0 / 361.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.1119, allocations: 166.7 kB / 362 MB, free: 8.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.1121, allocations: 8 kB / 362 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.1137, allocations: 0.5574 MB / 362.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.114, allocations: 0.708 MB / 363.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.133e-05/0.114, allocations: 11.44 kB / 363.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.114, allocations: 0 / 363.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of Templates: time 0.003801/0.1178, allocations: 2.198 MB / 365.5 MB, free: 4.883 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches