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.0009752/0.0009751, allocations: 93.42 kB / 16.3 MB, free: 5.996 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.0009813/0.0009813, allocations: 183.9 kB / 17.2 MB, free: 5.914 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.372/1.372, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002649/0.0002651, allocations: 8.031 kB / 300.7 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.09985, allocations: 50.43 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002315/0.1022, allocations: 1.645 MB / 352.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009469/0.1032, allocations: 0.5264 MB / 353.3 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.679e-05/0.1033, allocations: 4 kB / 353.3 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.917e-05/0.1034, allocations: 11.86 kB / 353.3 MB, free: 9.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.1035, allocations: 51.83 kB / 353.4 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.1039, allocations: 67.89 kB / 353.4 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002218/0.1041, allocations: 119.8 kB / 353.6 MB, free: 9.316 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.1042, allocations: 29.47 kB / 353.6 MB, free: 9.281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001943/0.1044, allocations: 79.69 kB / 353.7 MB, free: 9.203 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.1046, allocations: 67.67 kB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.1046, allocations: 8 kB / 353.7 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.429e-05/0.1046, allocations: 12 kB / 353.7 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.1047, allocations: 23.92 kB / 353.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.303e-05/0.1048, allocations: 49.64 kB / 353.8 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.1049, allocations: 119.7 kB / 353.9 MB, free: 8.922 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.1049, allocations: 0 / 353.9 MB, free: 8.922 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1049, allocations: 0 / 353.9 MB, free: 8.922 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1049, allocations: 3.938 kB / 353.9 MB, free: 8.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.000791/0.1057, allocations: 454.7 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1058, allocations: 8.031 kB / 354.4 MB, free: 8.418 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.313e-05/0.1059, allocations: 15.86 kB / 354.4 MB, free: 8.402 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.106, allocations: 194.8 kB / 354.6 MB, free: 8.172 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.1061, allocations: 8 kB / 354.6 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.1061, allocations: 12 kB / 354.6 MB, free: 8.152 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.1065, allocations: 152 kB / 354.8 MB, free: 7.988 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.1065, allocations: 3.938 kB / 354.8 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.1065, allocations: 8 kB / 354.8 MB, free: 7.977 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.974e-06/0.1065, allocations: 3.953 kB / 354.8 MB, free: 7.973 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002833/0.1068, allocations: 102.8 kB / 354.9 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009334/0.1078, allocations: 0.5148 MB / 355.4 MB, free: 7.305 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.1081, allocations: 102.5 kB / 355.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1081, allocations: 0 / 355.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.1081, allocations: 38.48 kB / 355.5 MB, free: 7.148 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.1081, allocations: 0 / 355.5 MB, free: 7.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004829/0.1086, allocations: 153.5 kB / 355.7 MB, free: 6.992 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.1087, allocations: 102.8 kB / 355.8 MB, free: 6.867 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.1089, allocations: 158.2 kB / 355.9 MB, free: 6.703 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.1089, allocations: 25.7 kB / 356 MB, free: 6.672 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.365e-05/0.109, allocations: 123.9 kB / 356.1 MB, free: 6.547 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.109, allocations: 27.64 kB / 356.1 MB, free: 6.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/0.109, allocations: 8 kB / 356.1 MB, free: 6.512 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1092, allocations: 326.7 kB / 356.4 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.1093, allocations: 39.97 kB / 356.5 MB, free: 6.145 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.1095, allocations: 88.2 kB / 356.6 MB, free: 6.043 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.1096, allocations: 43.98 kB / 356.6 MB, free: 6 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1097, allocations: 4 kB / 356.6 MB, free: 5.996 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003404/0.11, allocations: 149.5 kB / 356.8 MB, free: 5.844 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.11, allocations: 4 kB / 356.8 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.11, allocations: 0 / 356.8 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1101, allocations: 0 / 356.8 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005888/0.1107, allocations: 83.91 kB / 356.8 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.112, allocations: 1.409 MB / 358.3 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.1122, allocations: 23.86 kB / 358.3 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.1122, allocations: 15.95 kB / 358.3 MB, free: 4.168 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001136/0.1124, allocations: 117.8 kB / 358.4 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.897e-05/0.1124, allocations: 16.11 kB / 358.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004707/0.1129, allocations: 167.1 kB / 358.6 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1129, allocations: 48 / 358.6 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1129, allocations: 11.98 kB / 358.6 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1129, allocations: 7.891 kB / 358.6 MB, free: 3.836 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002278/0.1132, allocations: 225.6 kB / 358.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1132, allocations: 0 / 358.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.1133, allocations: 23.98 kB / 358.8 MB, free: 3.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002583/0.1136, allocations: 36.81 kB / 358.9 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.1136, allocations: 8 kB / 358.9 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.1146, allocations: 1.3 MB / 360.2 MB, free: 2.062 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1146, allocations: 0 / 360.2 MB, free: 2.062 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000616/0.1153, allocations: 308.8 kB / 360.5 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.884e-05/0.1153, allocations: 84.92 kB / 360.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.1154, allocations: 4.031 kB / 360.6 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.1155, allocations: 15.98 kB / 360.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/0.1156, allocations: 19.94 kB / 360.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.1156, allocations: 4 kB / 360.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001081/0.1158, allocations: 121.5 kB / 360.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1158, allocations: 0 / 360.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.1161, allocations: 39.94 kB / 360.8 MB, free: 1.441 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001549/0.1163, allocations: 99.25 kB / 360.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007299/0.117, allocations: 147.9 kB / 361 MB, free: 1.191 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.117, allocations: 0 / 361 MB, free: 1.191 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.1173, allocations: 174.7 kB / 361.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.1175, allocations: 4.219 kB / 361.2 MB, free: 1.004 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.119, allocations: 0.6059 MB / 361.8 MB, free: 380 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.1194, allocations: 0.7199 MB / 362.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.678e-05/0.1195, allocations: 20.36 kB / 362.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.1195, allocations: 19.36 kB / 362.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1195, allocations: 0 / 362.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Templates: time 0.004378/0.1239, allocations: 1.45 MB / 364 MB, free: 14.14 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches