Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001352/0.001352, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.446/1.446, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 68.86 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09746, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004446/0.1019, allocations: 2.758 MB / 361.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.1036, allocations: 0.9501 MB / 362.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.1038, allocations: 8 kB / 362.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.1041, allocations: 59.42 kB / 362.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002902/0.1044, allocations: 115.2 kB / 362.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.1047, allocations: 99.81 kB / 362.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.1051, allocations: 366.6 kB / 362.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002252/0.1053, allocations: 105.6 kB / 362.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.1056, allocations: 147.5 kB / 363 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.1058, allocations: 151.3 kB / 363.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.995e-05/0.1059, allocations: 28 kB / 363.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.765e-05/0.106, allocations: 35.94 kB / 363.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.738e-05/0.1061, allocations: 67.77 kB / 363.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.1063, allocations: 159.1 kB / 363.5 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004437/0.1067, allocations: 366.9 kB / 363.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1067, allocations: 4 kB / 363.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1067, allocations: 0 / 363.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1067, allocations: 4 kB / 363.8 MB, free: 8.535 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.001139/0.1079, allocations: 0.6119 MB / 364.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1079, allocations: 8.031 kB / 364.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/0.1081, allocations: 44.55 kB / 364.5 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.1085, allocations: 256.8 kB / 364.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.1085, allocations: 20.88 kB / 364.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-05/0.1086, allocations: 28.38 kB / 364.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005102/0.1091, allocations: 253.2 kB / 365 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.1092, allocations: 0 / 365 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.1092, allocations: 12 kB / 365 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.1092, allocations: 8 kB / 365.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004655/0.1097, allocations: 206.1 kB / 365.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.1113, allocations: 1.017 MB / 366.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.1118, allocations: 198.5 kB / 366.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002506/0.1121, allocations: 105.2 kB / 366.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.1121, allocations: 8 kB / 366.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.1121, allocations: 50.44 kB / 366.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.1122, allocations: 0 / 366.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.005161/0.1173, allocations: 1.537 MB / 368.2 MB, free: 3.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.1174, allocations: 67.28 kB / 368.2 MB, free: 3.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.1177, allocations: 233 kB / 368.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.1177, allocations: 29.7 kB / 368.5 MB, free: 3.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.1178, allocations: 196.1 kB / 368.7 MB, free: 3.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.118, allocations: 114.3 kB / 368.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1181, allocations: 65.97 kB / 368.8 MB, free: 3.188 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1182, allocations: 334.8 kB / 369.2 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.1185, allocations: 112.7 kB / 369.3 MB, free: 2.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/0.1188, allocations: 153.7 kB / 369.4 MB, free: 2.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005298/0.1193, allocations: 287.8 kB / 369.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1193, allocations: 0 / 369.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001559/0.1209, allocations: 0.5332 MB / 370.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1209, allocations: 7.938 kB / 370.3 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1209, allocations: 3.984 kB / 370.3 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/0.1222, allocations: 245.5 kB / 370.5 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.1225, allocations: 59.91 kB / 370.6 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1538/0.2764, allocations: 4.129 MB / 374.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.2766, allocations: 14.62 kB / 374.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.2767, allocations: 16.17 kB / 374.7 MB, free: 17.21 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.0001496/0.2768, allocations: 150 kB / 374.9 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-05/0.2769, allocations: 30.72 kB / 374.9 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.008e-05/0.277, allocations: 39.86 kB / 374.9 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.277, allocations: 6.688 kB / 374.9 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.277, allocations: 1.594 kB / 374.9 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.277, allocations: 2.531 kB / 374.9 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002037/0.2791, allocations: 0.9828 MB / 375.9 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2791, allocations: 4.578 kB / 375.9 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002143/0.2793, allocations: 49.77 kB / 376 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.2805, allocations: 234.3 kB / 376.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.2805, allocations: 11.36 kB / 376.2 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003853/0.2844, allocations: 4.128 MB / 380.4 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.2844, allocations: 0 / 380.4 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.2861, allocations: 0.7322 MB / 381.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.262e-05/0.2862, allocations: 97.27 kB / 381.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.2862, allocations: 7.547 kB / 381.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.2864, allocations: 13.2 kB / 381.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.895e-05/0.2866, allocations: 34.92 kB / 381.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.2866, allocations: 11.75 kB / 381.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001392/0.2867, allocations: 171.6 kB / 381.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2867, allocations: 0 / 381.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005932/0.2873, allocations: 100.3 kB / 381.5 MB, free: 12.37 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 9.982e-05/0.2874, allocations: 109.8 kB / 381.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009267/0.2884, allocations: 0.5779 MB / 382.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2884, allocations: 0 / 382.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004965/0.2889, allocations: 424 kB / 382.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.2892, allocations: 26.27 kB / 382.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.2904, allocations: 0.7415 MB / 383.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.2907, allocations: 0.779 MB / 384.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.546e-05/0.2908, allocations: 25.72 kB / 384.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2908, allocations: 0 / 384.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Templates: time 0.009612/0.3004, allocations: 6.1 MB / 390.3 MB, free: 9.043 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches