Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.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 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.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 108.1 kB / 17.15 MB, free: 6.305 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.001561/0.001561, allocations: 198 kB / 18.07 MB, free: 5.41 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.44/1.44, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001147/0.001147, allocations: 43.92 kB / 280 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09263/0.09379, allocations: 46.64 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.00475/0.09859, allocations: 2.718 MB / 329.3 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.1002, allocations: 0.8927 MB / 330.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.1004, allocations: 4 kB / 330.2 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.1007, allocations: 47.69 kB / 330.3 MB, free: 1.211 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002667/0.1009, allocations: 103.4 kB / 330.4 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.1012, allocations: 75.94 kB / 330.4 MB, free: 1.035 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003341/0.1015, allocations: 334.6 kB / 330.8 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.1017, allocations: 90.23 kB / 330.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/0.1019, allocations: 131.5 kB / 331 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.1021, allocations: 143.4 kB / 331.1 MB, free: 364 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.1022, allocations: 20 kB / 331.1 MB, free: 344 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.446e-05/0.1022, allocations: 20 kB / 331.2 MB, free: 324 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.646e-05/0.1023, allocations: 55.75 kB / 331.2 MB, free: 268 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1024, allocations: 151.2 kB / 331.4 MB, free: 116 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.1028, allocations: 342.9 kB / 331.7 MB, free: 15.78 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1028, allocations: 4 kB / 331.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1028, allocations: 0 / 331.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1028, allocations: 0 / 331.7 MB, free: 15.77 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009838/0.1038, allocations: 0.6042 MB / 332.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.1038, allocations: 12.03 kB / 332.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.356e-05/0.1039, allocations: 36.55 kB / 332.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.1042, allocations: 255.5 kB / 332.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.1042, allocations: 24.94 kB / 332.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.682e-05/0.1043, allocations: 24.38 kB / 332.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.1047, allocations: 253.1 kB / 332.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1048, allocations: 0 / 332.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.1048, allocations: 12 kB / 332.9 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1048, allocations: 8 kB / 332.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004304/0.1052, allocations: 210.1 kB / 333.1 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.1068, allocations: 1.009 MB / 334.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004198/0.1072, allocations: 202.5 kB / 334.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.1075, allocations: 112.8 kB / 334.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.1075, allocations: 0 / 334.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.1075, allocations: 42.56 kB / 334.5 MB, free: 12.79 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.272e-06/0.1076, allocations: 0 / 334.5 MB, free: 12.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.005245/0.1128, allocations: 1.534 MB / 336 MB, free: 11.17 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.1129, allocations: 63.34 kB / 336.1 MB, free: 11.1 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.1131, allocations: 228.9 kB / 336.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.1131, allocations: 33.7 kB / 336.3 MB, free: 10.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.882e-05/0.1132, allocations: 172.2 kB / 336.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.848e-05/0.1133, allocations: 130.1 kB / 336.6 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1134, allocations: 62.08 kB / 336.7 MB, free: 10.45 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1136, allocations: 334.8 kB / 337 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.1138, allocations: 108.7 kB / 337.1 MB, free: 10.01 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/0.1141, allocations: 169.2 kB / 337.3 MB, free: 9.832 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004841/0.1146, allocations: 279.8 kB / 337.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1146, allocations: 0 / 337.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001581/0.1162, allocations: 0.5409 MB / 338.1 MB, free: 8.988 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1162, allocations: 4 kB / 338.1 MB, free: 8.984 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.1162, allocations: 0 / 338.1 MB, free: 8.984 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.1175, allocations: 241.5 kB / 338.3 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.1178, allocations: 59.91 kB / 338.4 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004509/0.1223, allocations: 3.731 MB / 342.1 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.1226, allocations: 8 kB / 342.1 MB, free: 4.676 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.1226, allocations: 16.06 kB / 342.1 MB, free: 4.66 MB / 286.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.0001806/0.1228, allocations: 153.8 kB / 342.3 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.579e-05/0.1229, allocations: 23.72 kB / 342.3 MB, free: 4.477 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.254e-05/0.123, allocations: 34.97 kB / 342.4 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.123, allocations: 7.938 kB / 342.4 MB, free: 4.434 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.123, allocations: 8 kB / 342.4 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.123, allocations: 3.984 kB / 342.4 MB, free: 4.422 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.1251, allocations: 0.9882 MB / 343.4 MB, free: 3.367 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.1251, allocations: 7.984 kB / 343.4 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.1253, allocations: 39.92 kB / 343.4 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.1266, allocations: 245.5 kB / 343.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.1266, allocations: 4 kB / 343.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004231/0.1308, allocations: 3.721 MB / 347.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1309, allocations: 0 / 347.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.1327, allocations: 0.7328 MB / 348.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.853e-05/0.1328, allocations: 100.8 kB / 348.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.1329, allocations: 11.94 kB / 348.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.1331, allocations: 8 kB / 348.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.1332, allocations: 27.95 kB / 348.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.1333, allocations: 16 kB / 348.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001866/0.1335, allocations: 164.5 kB / 348.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.1335, allocations: 4.062 kB / 348.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006457/0.1341, allocations: 104 kB / 348.5 MB, free: 13.88 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.0001332/0.1343, allocations: 103.2 kB / 348.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009463/0.1352, allocations: 0.5594 MB / 349.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.1352, allocations: 0 / 349.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000561/0.1358, allocations: 429 kB / 349.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.1362, allocations: 36.73 kB / 349.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.1376, allocations: 0.8089 MB / 350.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.138, allocations: 0.7837 MB / 351.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.1381, allocations: 18.3 kB / 351.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.1382, allocations: 19.44 kB / 351.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1382, allocations: 288 / 351.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Templates: time 0.009298/0.1475, allocations: 5.129 MB / 356.4 MB, free: 5.879 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SaturatedInductor/SaturatedInductor.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches