Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.459/1.459, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 47.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.259, allocations: 53.36 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003337/0.2623, allocations: 2.069 MB / 433.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.2635, allocations: 0.6699 MB / 433.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.861e-05/0.2636, allocations: 4 kB / 433.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.042e-05/0.2637, allocations: 23.78 kB / 433.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.2638, allocations: 47.62 kB / 434 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.2642, allocations: 107.7 kB / 434.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002521/0.2644, allocations: 183.3 kB / 434.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.2646, allocations: 37.73 kB / 434.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.2648, allocations: 87.69 kB / 434.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.2649, allocations: 79.62 kB / 434.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.149e-05/0.2649, allocations: 16 kB / 434.5 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.522e-05/0.265, allocations: 27.98 kB / 434.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.623e-05/0.265, allocations: 35.84 kB / 434.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.229e-05/0.2651, allocations: 79.59 kB / 434.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002541/0.2653, allocations: 187.7 kB / 434.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2654, allocations: 0 / 434.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2654, allocations: 0 / 434.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2654, allocations: 0 / 434.8 MB, free: 3.219 MB / 334.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.0007833/0.2661, allocations: 401.6 kB / 435.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2662, allocations: 12.03 kB / 435.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.442e-05/0.2662, allocations: 38.75 kB / 435.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003797/0.2666, allocations: 56.8 kB / 435.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.2669, allocations: 167.8 kB / 435.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.2669, allocations: 4.375 kB / 435.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.2669, allocations: 12.38 kB / 435.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.2673, allocations: 155.8 kB / 435.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.2673, allocations: 0 / 435.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.889e-05/0.2673, allocations: 12 kB / 435.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.207e-06/0.2673, allocations: 0 / 435.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.2676, allocations: 91.94 kB / 435.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009174/0.2685, allocations: 490.4 kB / 436.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.2688, allocations: 94.53 kB / 436.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.269, allocations: 64.83 kB / 436.3 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.269, allocations: 3.938 kB / 436.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.269, allocations: 38.5 kB / 436.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.2691, allocations: 0 / 436.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004774/0.2695, allocations: 145.5 kB / 436.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/0.2696, allocations: 106.8 kB / 436.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.2698, allocations: 166.1 kB / 436.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.2698, allocations: 25.7 kB / 436.8 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.052e-05/0.2699, allocations: 119.9 kB / 436.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.302e-05/0.2699, allocations: 35.88 kB / 437 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.9e-05/0.27, allocations: 29.7 kB / 437 MB, free: 0.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2701, allocations: 326.8 kB / 437.3 MB, free: 476 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.2703, allocations: 43.97 kB / 437.4 MB, free: 432 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.2704, allocations: 72.27 kB / 437.4 MB, free: 344 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.2707, allocations: 110.8 kB / 437.5 MB, free: 224 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2707, allocations: 0 / 437.5 MB, free: 224 kB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003455/0.271, allocations: 149.5 kB / 437.7 MB, free: 68 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.271, allocations: 7.984 kB / 437.7 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.271, allocations: 0 / 437.7 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.2711, allocations: 4 kB / 437.7 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006146/0.2717, allocations: 75.92 kB / 437.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.2732, allocations: 1.404 MB / 439.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.2734, allocations: 23.89 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.2734, allocations: 7.984 kB / 439.2 MB, free: 14.43 MB / 350.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 0.0001393/0.2735, allocations: 117.8 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.2736, allocations: 11.97 kB / 439.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004778/0.274, allocations: 167.1 kB / 439.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.274, allocations: 3.938 kB / 439.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.274, allocations: 4 kB / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.274, allocations: 0 / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007965/0.2748, allocations: 431.1 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2748, allocations: 0 / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.275, allocations: 27.97 kB / 440 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002141/0.2752, allocations: 28.88 kB / 440 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.2752, allocations: 0 / 440 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.2764, allocations: 1.307 MB / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2764, allocations: 0 / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000599/0.277, allocations: 297.1 kB / 441.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.757e-05/0.277, allocations: 15.97 kB / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.2771, allocations: 7.938 kB / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.2772, allocations: 16.05 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.113e-05/0.2773, allocations: 11.98 kB / 441.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.2773, allocations: 0 / 441.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.82e-05/0.2774, allocations: 120.1 kB / 441.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2774, allocations: 0 / 441.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002997/0.2777, allocations: 43.89 kB / 441.8 MB, free: 11.63 MB / 350.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 0.0009168/0.2786, allocations: 0.8311 MB / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006938/0.2793, allocations: 139.9 kB / 442.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2793, allocations: 0 / 442.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003334/0.2796, allocations: 167.1 kB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.2799, allocations: 8 kB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003414/0.2833, allocations: 2.114 MB / 445 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.2837, allocations: 0.7118 MB / 445.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.278e-05/0.2838, allocations: 16.47 kB / 445.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.881e-05/0.2838, allocations: 43.42 kB / 445.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2838, allocations: 4 kB / 445.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03466/0.3185, allocations: 3.47 MB / 449.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.63, allocations: 11.94 kB / 449.3 MB, free: 4.094 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --stepSize=0.0100051 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.047857809113339]