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.001447/0.001447, allocations: 101.4 kB / 18.39 MB, free: 4.664 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.001486/0.001486, allocations: 189.1 kB / 19.33 MB, free: 3.738 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.335/1.335, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001301/0.001301, allocations: 55.92 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07934/0.08065, allocations: 46.61 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003089/0.08377, allocations: 1.999 MB / 377.8 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.08483, allocations: 0.6162 MB / 378.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.08495, allocations: 4 kB / 378.4 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.697e-05/0.08504, allocations: 15.84 kB / 378.5 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.0852, allocations: 43.58 kB / 378.5 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003462/0.08556, allocations: 99.78 kB / 378.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.08578, allocations: 183.3 kB / 378.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.08594, allocations: 53.47 kB / 378.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.08615, allocations: 75.7 kB / 378.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.08627, allocations: 83.61 kB / 379 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.08632, allocations: 16 kB / 379 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.274e-05/0.08635, allocations: 16 kB / 379 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.811e-05/0.0864, allocations: 35.91 kB / 379 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.34e-05/0.08648, allocations: 79.53 kB / 379.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.08667, allocations: 171.4 kB / 379.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.08669, allocations: 0 / 379.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.08669, allocations: 3.938 kB / 379.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.0867, allocations: 4 kB / 379.3 MB, free: 1.047 MB / 318.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.0007528/0.08746, allocations: 470.7 kB / 379.8 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.08751, allocations: 15.89 kB / 379.8 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.659e-05/0.08757, allocations: 16.75 kB / 379.8 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.08774, allocations: 192.1 kB / 380 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.08776, allocations: 8.375 kB / 380 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.731e-05/0.0878, allocations: 12.31 kB / 380 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003134/0.08812, allocations: 160.4 kB / 380.2 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.08814, allocations: 0 / 380.2 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.08816, allocations: 0 / 380.2 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.08818, allocations: 4 kB / 380.2 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1549/0.2431, allocations: 97.31 kB / 380.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000983/0.2441, allocations: 0.5047 MB / 380.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.2444, allocations: 105.7 kB / 380.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002001/0.2446, allocations: 66.02 kB / 380.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.2446, allocations: 4.125 kB / 380.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.518e-05/0.2447, allocations: 32.81 kB / 381 MB, free: 12.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.2447, allocations: 0.5 kB / 381 MB, free: 12.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000434/0.2451, allocations: 147.1 kB / 381.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.2452, allocations: 108.2 kB / 381.2 MB, free: 12.72 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.2453, allocations: 159.2 kB / 381.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.2453, allocations: 27.08 kB / 381.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.2454, allocations: 124 kB / 381.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.2454, allocations: 26.33 kB / 381.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/0.2455, allocations: 33.64 kB / 381.6 MB, free: 12.47 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.814e-05/0.2455, allocations: 320.6 kB / 381.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.2456, allocations: 43.92 kB / 381.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.2458, allocations: 78.83 kB / 382 MB, free: 12.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.246, allocations: 99.95 kB / 382.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.246, allocations: 3.812 kB / 382.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002911/0.2463, allocations: 148.9 kB / 382.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2463, allocations: 5.031 kB / 382.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.2464, allocations: 2.375 kB / 382.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.2464, allocations: 5.25 kB / 382.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005598/0.2469, allocations: 84.84 kB / 382.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.248, allocations: 1.5 MB / 383.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.2482, allocations: 25.88 kB / 383.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.2482, allocations: 4.922 kB / 383.9 MB, free: 10.61 MB / 318.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 8.099e-05/0.2483, allocations: 127.5 kB / 384 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.2483, allocations: 13.42 kB / 384 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004589/0.2488, allocations: 151.5 kB / 384.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.2488, allocations: 2.109 kB / 384.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.2488, allocations: 0 / 384.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2488, allocations: 1.016 kB / 384.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006467/0.2495, allocations: 466.4 kB / 384.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2495, allocations: 1.125 kB / 384.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.2497, allocations: 29.06 kB / 384.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.2499, allocations: 32.62 kB / 384.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.2499, allocations: 9.281 kB / 384.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007768/0.2507, allocations: 1.391 MB / 386.1 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2507, allocations: 0.625 kB / 386.1 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005668/0.2513, allocations: 299.5 kB / 386.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.2513, allocations: 92.88 kB / 386.5 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.2513, allocations: 1.484 kB / 386.5 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.2515, allocations: 13.77 kB / 386.5 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.2516, allocations: 18.94 kB / 386.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.2516, allocations: 3.516 kB / 386.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.906e-05/0.2516, allocations: 119.7 kB / 386.6 MB, free: 8.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2517, allocations: 0 / 386.6 MB, free: 8.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.2519, allocations: 35.53 kB / 386.7 MB, free: 8.34 MB / 318.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 9.292e-05/0.252, allocations: 98.84 kB / 386.8 MB, free: 8.254 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000652/0.2527, allocations: 141.5 kB / 386.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2527, allocations: 0 / 386.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002845/0.253, allocations: 171.1 kB / 387.1 MB, free: 8.094 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.2532, allocations: 8.594 kB / 387.1 MB, free: 8.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.2546, allocations: 0.5585 MB / 387.6 MB, free: 7.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001252/0.2547, allocations: 0.7134 MB / 388.3 MB, free: 7.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.066e-05/0.2548, allocations: 22.08 kB / 388.4 MB, free: 7.059 MB / 318.1 MB Notification: Performance of SimCode: time 8.81e-07/0.2548, allocations: 0 / 388.4 MB, free: 7.059 MB / 318.1 MB Notification: Performance of Templates: time 0.00389/0.2587, allocations: 2.215 MB / 390.6 MB, free: 6.898 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches