Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001006/0.001006, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007649/0.0007647, allocations: 93.11 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002973/0.0002972, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2261, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.001678/0.2278, allocations: 1.663 MB / 376.2 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007121/0.2285, allocations: 0.5716 MB / 376.8 MB, free: 43.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.708e-05/0.2286, allocations: 2.031 kB / 376.8 MB, free: 43.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.376e-05/0.2286, allocations: 16.88 kB / 376.8 MB, free: 43.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.2287, allocations: 33.39 kB / 376.8 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002749/0.229, allocations: 76.27 kB / 376.9 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.2292, allocations: 168.2 kB / 377.1 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.2293, allocations: 37.16 kB / 377.1 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.2295, allocations: 62.69 kB / 377.2 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.831e-05/0.2296, allocations: 65.06 kB / 377.2 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.126e-05/0.2296, allocations: 11.83 kB / 377.2 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.102e-05/0.2296, allocations: 9.125 kB / 377.3 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.436e-05/0.2297, allocations: 28.06 kB / 377.3 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.738e-05/0.2297, allocations: 49.36 kB / 377.3 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.2298, allocations: 123.1 kB / 377.5 MB, free: 43.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.2298, allocations: 1.062 kB / 377.5 MB, free: 43.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2298, allocations: 0 / 377.5 MB, free: 43.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.2299, allocations: 0 / 377.5 MB, free: 43.19 MB / 298.7 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.0006625/0.2305, allocations: 446.5 kB / 377.9 MB, free: 42.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.2306, allocations: 8.375 kB / 377.9 MB, free: 42.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.556e-05/0.2306, allocations: 15.81 kB / 377.9 MB, free: 42.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.2308, allocations: 201.3 kB / 378.1 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.2308, allocations: 11.45 kB / 378.1 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.106e-05/0.2308, allocations: 10.69 kB / 378.1 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.2312, allocations: 159.5 kB / 378.3 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.2312, allocations: 0 / 378.3 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.2312, allocations: 1.281 kB / 378.3 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.2312, allocations: 10.44 kB / 378.3 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002783/0.2315, allocations: 102.9 kB / 378.4 MB, free: 42.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008198/0.2323, allocations: 0.5076 MB / 378.9 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.2327, allocations: 110.4 kB / 379 MB, free: 41.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.2329, allocations: 72.92 kB / 379.1 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.2329, allocations: 3.953 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.2329, allocations: 35.72 kB / 379.1 MB, free: 41.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.2329, allocations: 1.375 kB / 379.1 MB, free: 41.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004789/0.2334, allocations: 147.8 kB / 379.3 MB, free: 41.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.2335, allocations: 105.1 kB / 379.4 MB, free: 41.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.2336, allocations: 159.3 kB / 379.5 MB, free: 41.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.2336, allocations: 26.98 kB / 379.6 MB, free: 41.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.2337, allocations: 119 kB / 379.7 MB, free: 41.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.2337, allocations: 31.58 kB / 379.7 MB, free: 41.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.2337, allocations: 4 kB / 379.7 MB, free: 41.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.749e-05/0.2338, allocations: 321.6 kB / 380 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.2339, allocations: 35.7 kB / 380.1 MB, free: 40.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.2341, allocations: 84.92 kB / 380.1 MB, free: 40.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.2342, allocations: 55.08 kB / 380.2 MB, free: 40.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2343, allocations: 0 / 380.2 MB, free: 40.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003352/0.2346, allocations: 147.5 kB / 380.3 MB, free: 40.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.2346, allocations: 10.61 kB / 380.3 MB, free: 40.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2346, allocations: 1.156 kB / 380.3 MB, free: 40.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2347, allocations: 1.219 kB / 380.3 MB, free: 40.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006164/0.2353, allocations: 84.33 kB / 380.4 MB, free: 40.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.2364, allocations: 1.409 MB / 381.8 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.2366, allocations: 21.17 kB / 381.9 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.2366, allocations: 7.484 kB / 381.9 MB, free: 39.2 MB / 298.7 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 8.271e-05/0.2367, allocations: 124 kB / 382 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.82e-05/0.2367, allocations: 17.42 kB / 382 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004615/0.2372, allocations: 161.8 kB / 382.2 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2372, allocations: 5.109 kB / 382.2 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.2372, allocations: 1.281 kB / 382.2 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2372, allocations: 0 / 382.2 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006637/0.2379, allocations: 472.2 kB / 382.6 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2379, allocations: 0 / 382.6 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.2381, allocations: 25.61 kB / 382.7 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002666/0.2384, allocations: 39.72 kB / 382.7 MB, free: 38.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.2384, allocations: 6.094 kB / 382.7 MB, free: 38.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007173/0.2391, allocations: 1.3 MB / 384 MB, free: 37.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2391, allocations: 1.062 kB / 384 MB, free: 37.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005725/0.2397, allocations: 301.7 kB / 384.3 MB, free: 36.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.115e-05/0.2397, allocations: 96.45 kB / 384.4 MB, free: 36.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.2398, allocations: 1.281 kB / 384.4 MB, free: 36.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.24, allocations: 20.7 kB / 384.4 MB, free: 36.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.24, allocations: 10.72 kB / 384.4 MB, free: 36.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.24, allocations: 6.656 kB / 384.4 MB, free: 36.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.562e-05/0.2401, allocations: 117.8 kB / 384.5 MB, free: 36.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2401, allocations: 0 / 384.5 MB, free: 36.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003243/0.2404, allocations: 32.12 kB / 384.6 MB, free: 36.69 MB / 298.7 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 (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.0001231/0.2406, allocations: 107.2 kB / 384.7 MB, free: 36.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007185/0.2413, allocations: 137 kB / 384.8 MB, free: 36.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.2413, allocations: 4.062 kB / 384.8 MB, free: 36.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003121/0.2416, allocations: 165.9 kB / 385 MB, free: 36.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.2419, allocations: 7.406 kB / 385 MB, free: 36.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.2434, allocations: 0.6386 MB / 385.6 MB, free: 35.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.2436, allocations: 0.7173 MB / 386.3 MB, free: 35.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.358e-05/0.2436, allocations: 17.41 kB / 386.4 MB, free: 35.2 MB / 298.7 MB Notification: Performance of SimCode: time 5.82e-07/0.2437, allocations: 0.9688 kB / 386.4 MB, free: 35.2 MB / 298.7 MB Notification: Performance of Templates: time 0.00361/0.2473, allocations: 2.178 MB / 388.5 MB, free: 34.07 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches