Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0011/0.0011, allocations: 107.6 kB / 17.15 MB, free: 6.332 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.001115/0.001115, allocations: 198 kB / 18.07 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.1 MB / 223.9 MB, free: 12.49 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 51.92 kB / 280 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1101, allocations: 46.62 MB / 326.6 MB, free: 4.914 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.00354/0.1137, allocations: 2.071 MB / 328.7 MB, free: 2.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.1149, allocations: 0.6009 MB / 329.3 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.609e-05/0.115, allocations: 0 / 329.3 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.831e-05/0.1151, allocations: 15.92 kB / 329.3 MB, free: 2.195 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.1152, allocations: 35.69 kB / 329.3 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003402/0.1156, allocations: 79.91 kB / 329.4 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001795/0.1157, allocations: 171.3 kB / 329.6 MB, free: 1.914 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.1159, allocations: 49.44 kB / 329.6 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.1161, allocations: 75.64 kB / 329.7 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.1162, allocations: 75.69 kB / 329.8 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.137e-05/0.1163, allocations: 8 kB / 329.8 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.884e-05/0.1163, allocations: 12 kB / 329.8 MB, free: 1.695 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.184e-05/0.1164, allocations: 35.84 kB / 329.8 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.972e-05/0.1164, allocations: 75.58 kB / 329.9 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.1166, allocations: 167.7 kB / 330 MB, free: 1.422 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1166, allocations: 0 / 330 MB, free: 1.422 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.1167, allocations: 0 / 330 MB, free: 1.422 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1167, allocations: 3.938 kB / 330.1 MB, free: 1.418 MB / 270.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.000848/0.1175, allocations: 470.8 kB / 330.5 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.1176, allocations: 8.031 kB / 330.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.1176, allocations: 12.84 kB / 330.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.1178, allocations: 204 kB / 330.7 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.1178, allocations: 8.375 kB / 330.7 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.1179, allocations: 8.375 kB / 330.7 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.1182, allocations: 156.4 kB / 330.9 MB, free: 480 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1182, allocations: 0 / 330.9 MB, free: 480 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.1183, allocations: 4 kB / 330.9 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.1183, allocations: 4 kB / 330.9 MB, free: 472 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.1185, allocations: 95.88 kB / 331 MB, free: 376 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009518/0.1195, allocations: 0.5033 MB / 331.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.1198, allocations: 106.5 kB / 331.6 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.12, allocations: 68.81 kB / 331.7 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.1201, allocations: 4 kB / 331.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.1201, allocations: 38.5 kB / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.1201, allocations: 0 / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.000494/0.1206, allocations: 145.4 kB / 331.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.272e-05/0.1207, allocations: 106.8 kB / 332 MB, free: 15.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.1208, allocations: 162 kB / 332.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.1209, allocations: 29.7 kB / 332.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.189e-05/0.121, allocations: 115.9 kB / 332.3 MB, free: 14.97 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.121, allocations: 27.7 kB / 332.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.189e-05/0.1211, allocations: 33.7 kB / 332.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1212, allocations: 318.8 kB / 332.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.1213, allocations: 39.98 kB / 332.7 MB, free: 14.55 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.1215, allocations: 92.11 kB / 332.8 MB, free: 14.44 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.1217, allocations: 94.58 kB / 332.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1217, allocations: 0 / 332.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003215/0.1221, allocations: 149.5 kB / 333 MB, free: 14.19 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1221, allocations: 11.94 kB / 333 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1221, allocations: 0 / 333 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.1221, allocations: 0 / 333 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005886/0.1227, allocations: 87.84 kB / 333.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001416/0.1241, allocations: 1.401 MB / 334.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.1243, allocations: 16.17 kB / 334.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.1243, allocations: 4 kB / 334.5 MB, free: 12.53 MB / 286.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.0001153/0.1245, allocations: 125.8 kB / 334.6 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.951e-05/0.1245, allocations: 11.81 kB / 334.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004672/0.125, allocations: 159.1 kB / 334.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.125, allocations: 0 / 334.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.125, allocations: 3.938 kB / 334.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.125, allocations: 0 / 334.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007471/0.1258, allocations: 476 kB / 335.3 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1258, allocations: 0 / 335.3 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.1259, allocations: 19.98 kB / 335.3 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002752/0.1262, allocations: 48.73 kB / 335.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.1262, allocations: 0 / 335.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.1273, allocations: 1.296 MB / 336.6 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1273, allocations: 0 / 336.6 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005827/0.1279, allocations: 297.6 kB / 336.9 MB, free: 9.879 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.1279, allocations: 93.03 kB / 337 MB, free: 9.77 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.128, allocations: 4 kB / 337 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.1281, allocations: 11.98 kB / 337 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.307e-05/0.1282, allocations: 8.062 kB / 337 MB, free: 9.746 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.1282, allocations: 7.984 kB / 337.1 MB, free: 9.738 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.982e-05/0.1283, allocations: 119.2 kB / 337.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1283, allocations: 0 / 337.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002927/0.1286, allocations: 43.78 kB / 337.2 MB, free: 9.578 MB / 286.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.0001342/0.1287, allocations: 107.2 kB / 337.3 MB, free: 9.465 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006799/0.1294, allocations: 139.8 kB / 337.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1294, allocations: 0 / 337.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003081/0.1298, allocations: 158.8 kB / 337.6 MB, free: 9.16 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.13, allocations: 12 kB / 337.6 MB, free: 9.148 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.1315, allocations: 0.5805 MB / 338.2 MB, free: 8.543 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.1319, allocations: 0.716 MB / 338.9 MB, free: 7.801 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.829e-05/0.1319, allocations: 12.55 kB / 338.9 MB, free: 7.789 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.587e-05/0.132, allocations: 15.44 kB / 338.9 MB, free: 7.773 MB / 286.1 MB Notification: Performance of SimCode: time 5.41e-07/0.132, allocations: 3.938 kB / 338.9 MB, free: 7.77 MB / 286.1 MB Notification: Performance of Templates: time 0.004358/0.1364, allocations: 1.527 MB / 340.5 MB, free: 6.242 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches