Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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.001285/0.001285, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001658/0.001658, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2349/0.2349, allocations: 46.96 MB / 360.9 MB, free: 4.109 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 63.91 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3268, allocations: 66.03 MB / 0.5606 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003184/0.33, allocations: 1.851 MB / 0.5624 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.331, allocations: 0.5581 MB / 0.5629 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.372e-05/0.3311, allocations: 4 kB / 0.5629 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.055e-05/0.3311, allocations: 15.8 kB / 0.563 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002074/0.3313, allocations: 31.72 kB / 0.563 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.3316, allocations: 91.55 kB / 0.5631 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.3318, allocations: 159.4 kB / 0.5632 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.3319, allocations: 23.12 kB / 0.5632 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.3322, allocations: 75.77 kB / 0.5633 GB, free: 1.387 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.3323, allocations: 67.69 kB / 0.5634 GB, free: 1.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.3323, allocations: 12 kB / 0.5634 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.022e-05/0.3324, allocations: 16 kB / 0.5634 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.004e-05/0.3324, allocations: 35.89 kB / 0.5634 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.027e-05/0.3325, allocations: 47.78 kB / 0.5635 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.3327, allocations: 147.4 kB / 0.5636 GB, free: 1.066 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3327, allocations: 0 / 0.5636 GB, free: 1.066 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3327, allocations: 4 kB / 0.5636 GB, free: 1.062 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.3327, allocations: 0 / 0.5636 GB, free: 1.062 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008016/0.3335, allocations: 369.8 kB / 0.564 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3335, allocations: 12.03 kB / 0.564 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.482e-05/0.3336, allocations: 46.67 kB / 0.564 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003175/0.3339, allocations: 44.81 kB / 0.5641 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.3341, allocations: 126.4 kB / 0.5642 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.3341, allocations: 8.375 kB / 0.5642 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.3341, allocations: 4.375 kB / 0.5642 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003991/0.3345, allocations: 198.3 kB / 0.5644 GB, free: 188 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3345, allocations: 7.938 kB / 0.5644 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.3345, allocations: 4 kB / 0.5644 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3345, allocations: 0 / 0.5644 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003398/0.3349, allocations: 95.83 kB / 0.5645 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009242/0.3358, allocations: 398.6 kB / 0.5649 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.3361, allocations: 82.52 kB / 0.565 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.3363, allocations: 44.92 kB / 0.565 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.3363, allocations: 4 kB / 0.565 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.3363, allocations: 38.44 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.3363, allocations: 0 / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.001406/0.3377, allocations: 321.1 kB / 0.5654 GB, free: 15.13 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/0.3378, allocations: 106.8 kB / 0.5655 GB, free: 15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.338, allocations: 157.5 kB / 0.5656 GB, free: 14.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.338, allocations: 25.7 kB / 0.5656 GB, free: 14.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.323e-05/0.3381, allocations: 112.2 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.525e-05/0.3381, allocations: 23.8 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.2e-05/0.3382, allocations: 29.7 kB / 0.5658 GB, free: 14.63 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.3383, allocations: 322.8 kB / 0.5661 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.3386, allocations: 59.95 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002739/0.3388, allocations: 143.6 kB / 0.5663 GB, free: 14.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004235/0.3392, allocations: 146.5 kB / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.3392, allocations: 0 / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005276/0.3398, allocations: 177.5 kB / 0.5666 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3398, allocations: 7.938 kB / 0.5666 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.3398, allocations: 0 / 0.5666 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.3398, allocations: 4 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006257/0.3404, allocations: 83.91 kB / 0.5667 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.342, allocations: 1.389 MB / 0.568 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002339/0.3422, allocations: 28.19 kB / 0.5681 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.3423, allocations: 7.938 kB / 0.5681 GB, free: 12.11 MB / 414.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 (9): * Single equations (assignments): 8 * 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.0001136/0.3424, allocations: 117.8 kB / 0.5682 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.3424, allocations: 7.953 kB / 0.5682 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005137/0.3429, allocations: 174.3 kB / 0.5684 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3429, allocations: 0 / 0.5684 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.41e-07/0.3429, allocations: 3.938 kB / 0.5684 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3429, allocations: 288 / 0.5684 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008258/0.3438, allocations: 417.6 kB / 0.5688 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3438, allocations: 0 / 0.5688 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.3439, allocations: 27.91 kB / 0.5688 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3439, allocations: 7.984 kB / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.3439, allocations: 0 / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3439, allocations: 7.875 kB / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3439, allocations: 0 / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005171/0.3445, allocations: 259.3 kB / 0.5691 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.944e-05/0.3445, allocations: 7.953 kB / 0.5691 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.3445, allocations: 0 / 0.5691 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.3447, allocations: 35.91 kB / 0.5691 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.3448, allocations: 7.984 kB / 0.5691 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.3448, allocations: 4 kB / 0.5691 GB, free: 10.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.564e-05/0.3449, allocations: 109.7 kB / 0.5692 GB, free: 10.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3449, allocations: 0 / 0.5692 GB, free: 10.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.3451, allocations: 28 kB / 0.5692 GB, free: 10.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008138/0.3459, allocations: 0.7829 MB / 0.57 GB, free: 10.03 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008807/0.3468, allocations: 176 kB / 0.5702 GB, free: 9.855 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3468, allocations: 0 / 0.5702 GB, free: 9.855 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002388/0.3471, allocations: 63.94 kB / 0.5702 GB, free: 9.793 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.3474, allocations: 19.94 kB / 0.5703 GB, free: 9.773 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003495/0.3509, allocations: 1.975 MB / 0.5722 GB, free: 7.703 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.974e-05/0.351, allocations: 84.81 kB / 0.5723 GB, free: 7.602 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.144e-05/0.3511, allocations: 20.41 kB / 0.5723 GB, free: 7.582 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.288e-05/0.3512, allocations: 31.42 kB / 0.5723 GB, free: 7.551 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3512, allocations: 0 / 0.5723 GB, free: 7.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.3834, allocations: 3.867 MB / 0.5761 GB, free: 3.828 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.43, allocations: 2.578 kB / 0.5761 GB, free: 3.828 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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.297092501015868]