Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00148/0.00148, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001649/0.001649, allocations: 206.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 230.5 MB / 257.4 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2514/0.2514, allocations: 46.95 MB / 360.8 MB, free: 3.891 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002444/0.002444, allocations: 83.88 kB / 0.4961 GB, free: 7.516 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3477, allocations: 66.09 MB / 0.5607 GB, free: 3.977 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003217/0.3509, allocations: 1.854 MB / 0.5625 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.352, allocations: 0.5504 MB / 0.563 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.202e-05/0.352, allocations: 4 kB / 0.563 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.696e-05/0.3521, allocations: 11.86 kB / 0.563 GB, free: 1.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.3523, allocations: 39.64 kB / 0.5631 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.3526, allocations: 83.81 kB / 0.5632 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001915/0.3528, allocations: 159.4 kB / 0.5633 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.3529, allocations: 23.12 kB / 0.5633 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.3532, allocations: 79.64 kB / 0.5634 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.3533, allocations: 63.75 kB / 0.5635 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.3533, allocations: 12 kB / 0.5635 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.522e-05/0.3534, allocations: 12 kB / 0.5635 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.849e-05/0.3534, allocations: 39.83 kB / 0.5635 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.555e-05/0.3535, allocations: 47.8 kB / 0.5636 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.3537, allocations: 143.4 kB / 0.5637 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3537, allocations: 0 / 0.5637 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3537, allocations: 0 / 0.5637 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.3537, allocations: 0 / 0.5637 GB, free: 0.8516 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.0007843/0.3545, allocations: 381.8 kB / 0.5641 GB, free: 460 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3545, allocations: 8.031 kB / 0.5641 GB, free: 452 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.3546, allocations: 38.75 kB / 0.5641 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002882/0.3549, allocations: 44.81 kB / 0.5642 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.355, allocations: 140.4 kB / 0.5643 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.3551, allocations: 4.375 kB / 0.5643 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.3551, allocations: 8.375 kB / 0.5643 GB, free: 184 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003945/0.3555, allocations: 187.7 kB / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.3555, allocations: 0 / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.3555, allocations: 8 kB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3555, allocations: 0 / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/0.3559, allocations: 103.8 kB / 0.5646 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008498/0.3567, allocations: 386.6 kB / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.357, allocations: 90.52 kB / 0.5651 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.3572, allocations: 40.92 kB / 0.5651 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.3572, allocations: 0 / 0.5651 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.3572, allocations: 34.56 kB / 0.5651 GB, free: 15.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=4): time 9.01e-07/0.3572, allocations: 4 kB / 0.5651 GB, free: 15.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.001361/0.3586, allocations: 325.2 kB / 0.5654 GB, free: 14.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.911e-05/0.3586, allocations: 102.8 kB / 0.5655 GB, free: 14.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.3588, allocations: 148.3 kB / 0.5657 GB, free: 14.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.3588, allocations: 33.7 kB / 0.5657 GB, free: 14.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.4e-05/0.3589, allocations: 116.2 kB / 0.5658 GB, free: 14.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.306e-05/0.3589, allocations: 27.78 kB / 0.5659 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.884e-05/0.359, allocations: 25.7 kB / 0.5659 GB, free: 14.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3591, allocations: 322.8 kB / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.3594, allocations: 63.83 kB / 0.5662 GB, free: 14.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.3596, allocations: 151.6 kB / 0.5664 GB, free: 13.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.3601, allocations: 134.5 kB / 0.5665 GB, free: 13.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.3601, allocations: 4 kB / 0.5665 GB, free: 13.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005069/0.3606, allocations: 173.5 kB / 0.5667 GB, free: 13.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.3606, allocations: 7.938 kB / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.3606, allocations: 4.062 kB / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.3606, allocations: 0 / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005665/0.3612, allocations: 83.91 kB / 0.5668 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.3627, allocations: 1.401 MB / 0.5681 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/0.3629, allocations: 19.97 kB / 0.5682 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.3629, allocations: 11.94 kB / 0.5682 GB, free: 11.89 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.0001232/0.3631, allocations: 121.8 kB / 0.5683 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.65e-05/0.3631, allocations: 12.08 kB / 0.5683 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005013/0.3636, allocations: 162.3 kB / 0.5685 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3636, allocations: 0 / 0.5685 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.3636, allocations: 0 / 0.5685 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-06/0.3636, allocations: 3.984 kB / 0.5685 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008228/0.3644, allocations: 417.4 kB / 0.5689 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3644, allocations: 0 / 0.5689 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001588/0.3646, allocations: 31.97 kB / 0.5689 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3646, allocations: 0 / 0.5689 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3646, allocations: 0 / 0.5689 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.3646, allocations: 7.938 kB / 0.5689 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3646, allocations: 0 / 0.5689 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005245/0.3651, allocations: 255.3 kB / 0.5691 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.415e-05/0.3652, allocations: 15.94 kB / 0.5692 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.3652, allocations: 0 / 0.5692 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.3654, allocations: 23.91 kB / 0.5692 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/0.3654, allocations: 8 kB / 0.5692 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.3655, allocations: 7.984 kB / 0.5692 GB, free: 10.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.926e-05/0.3655, allocations: 103.3 kB / 0.5693 GB, free: 10.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3655, allocations: 4 kB / 0.5693 GB, free: 10.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000268/0.3658, allocations: 35.94 kB / 0.5693 GB, free: 10.63 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.0008134/0.3666, allocations: 0.7748 MB / 0.5701 GB, free: 9.824 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008321/0.3675, allocations: 171.8 kB / 0.5703 GB, free: 9.656 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3675, allocations: 4.125 kB / 0.5703 GB, free: 9.652 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.3677, allocations: 71.86 kB / 0.5703 GB, free: 9.582 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.368, allocations: 18.64 kB / 0.5703 GB, free: 9.566 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.3714, allocations: 1.981 MB / 0.5723 GB, free: 7.492 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.562e-05/0.3715, allocations: 84.81 kB / 0.5724 GB, free: 7.391 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.745e-05/0.3716, allocations: 24.39 kB / 0.5724 GB, free: 7.367 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.566e-05/0.3717, allocations: 35.42 kB / 0.5724 GB, free: 7.332 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3717, allocations: 0 / 0.5724 GB, free: 7.332 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03249/0.4042, allocations: 3.824 MB / 0.5761 GB, free: 3.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.88, allocations: 11.98 kB / 0.5762 GB, free: 3.609 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv","/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_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable saturatingInductor.Psi in file ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv. Warning: Get data of variable saturatingInductor.Psi from file ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv failed! Error: Could not read variable saturatingInductor.i in file ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv. Warning: Get data of variable saturatingInductor.i from file ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.019084075000137]