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.001689/0.001689, allocations: 128.4 kB / 17.79 MB, free: 5.242 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.00195/0.00195, allocations: 210.5 kB / 20.75 MB, free: 2.293 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.518/1.518, allocations: 230.5 MB / 254 MB, free: 15.01 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.273/0.273, allocations: 46.93 MB / 357 MB, free: 10.18 MB / 286.1 MB " [Timeout remaining time 180] 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.00225/0.00225, allocations: 79.88 kB / 0.4909 GB, free: 7.727 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1379, allocations: 66.05 MB / 0.5555 GB, free: 5.547 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003164/0.1411, allocations: 1.903 MB / 0.5573 GB, free: 3.625 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.1421, allocations: 0.6077 MB / 0.5579 GB, free: 3.012 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.841e-05/0.1422, allocations: 0 / 0.5579 GB, free: 3.012 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.923e-05/0.1422, allocations: 15.86 kB / 0.5579 GB, free: 2.996 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.1424, allocations: 47.62 kB / 0.558 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.1427, allocations: 79.83 kB / 0.558 GB, free: 2.871 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.1429, allocations: 159.5 kB / 0.5582 GB, free: 2.715 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.1431, allocations: 25.05 kB / 0.5582 GB, free: 2.691 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.1433, allocations: 75.77 kB / 0.5583 GB, free: 2.617 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.1434, allocations: 59.75 kB / 0.5583 GB, free: 2.559 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/0.1434, allocations: 16 kB / 0.5584 GB, free: 2.543 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.951e-05/0.1435, allocations: 16 kB / 0.5584 GB, free: 2.527 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.1435, allocations: 35.84 kB / 0.5584 GB, free: 2.492 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.216e-05/0.1436, allocations: 63.72 kB / 0.5585 GB, free: 2.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.1438, allocations: 147.4 kB / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1438, allocations: 0 / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1438, allocations: 0 / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1438, allocations: 0 / 0.5586 GB, free: 2.285 MB / 414.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.0008153/0.1447, allocations: 450.9 kB / 0.559 GB, free: 1.797 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.1447, allocations: 12.03 kB / 0.5591 GB, free: 1.785 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.094e-05/0.1448, allocations: 38.73 kB / 0.5591 GB, free: 1.738 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.145, allocations: 44.81 kB / 0.5591 GB, free: 1.695 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.1452, allocations: 188.2 kB / 0.5593 GB, free: 1.473 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.1452, allocations: 4.375 kB / 0.5593 GB, free: 1.469 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.1453, allocations: 16.36 kB / 0.5593 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.1456, allocations: 132.3 kB / 0.5595 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.1456, allocations: 0 / 0.5595 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.851e-05/0.1456, allocations: 4 kB / 0.5595 GB, free: 1.305 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1457, allocations: 4 kB / 0.5595 GB, free: 1.301 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003377/0.146, allocations: 99.86 kB / 0.5596 GB, free: 1.203 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008697/0.1469, allocations: 459.3 kB / 0.56 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.1472, allocations: 86.53 kB / 0.5601 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.1473, allocations: 40.92 kB / 0.5601 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.1473, allocations: 11.92 kB / 0.5601 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.1474, allocations: 34.56 kB / 0.5602 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of pre-optimization done (n=4): time 1.372e-06/0.1474, allocations: 0 / 0.5602 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.001418/0.1488, allocations: 317.1 kB / 0.5605 GB, free: 192 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.1489, allocations: 106.8 kB / 0.5606 GB, free: 60 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.149, allocations: 152 kB / 0.5607 GB, free: 15.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.1491, allocations: 29.7 kB / 0.5607 GB, free: 15.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.311e-05/0.1491, allocations: 112.2 kB / 0.5609 GB, free: 15.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.1492, allocations: 23.84 kB / 0.5609 GB, free: 15.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.617e-05/0.1492, allocations: 29.64 kB / 0.5609 GB, free: 15.69 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1494, allocations: 314.8 kB / 0.5612 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.1496, allocations: 67.88 kB / 0.5613 GB, free: 15.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.1499, allocations: 96.23 kB / 0.5614 GB, free: 15.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004514/0.1503, allocations: 138.4 kB / 0.5615 GB, free: 15.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.1503, allocations: 4 kB / 0.5615 GB, free: 15.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000544/0.1509, allocations: 169.5 kB / 0.5617 GB, free: 14.88 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1509, allocations: 7.938 kB / 0.5617 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1509, allocations: 8.062 kB / 0.5617 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.1509, allocations: 288 / 0.5617 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/0.1515, allocations: 83.91 kB / 0.5618 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/0.1531, allocations: 1.496 MB / 0.5632 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.1534, allocations: 32.12 kB / 0.5632 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.1534, allocations: 11.92 kB / 0.5633 GB, free: 13.09 MB / 430.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.0001153/0.1535, allocations: 121.8 kB / 0.5634 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.74e-05/0.1535, allocations: 7.953 kB / 0.5634 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005207/0.154, allocations: 162.3 kB / 0.5635 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.1541, allocations: 0 / 0.5635 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.52e-07/0.1541, allocations: 0 / 0.5635 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1541, allocations: 4.062 kB / 0.5635 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008535/0.1549, allocations: 470.2 kB / 0.564 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.1549, allocations: 7.984 kB / 0.564 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.1551, allocations: 19.98 kB / 0.564 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.1551, allocations: 4 kB / 0.564 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1551, allocations: 7.984 kB / 0.564 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1551, allocations: 3.938 kB / 0.564 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1551, allocations: 3.938 kB / 0.564 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005365/0.1556, allocations: 251.6 kB / 0.5643 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.244e-05/0.1557, allocations: 89.05 kB / 0.5644 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.1557, allocations: 4 kB / 0.5644 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.1559, allocations: 23.91 kB / 0.5644 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.118e-05/0.156, allocations: 11.98 kB / 0.5644 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.156, allocations: 7.984 kB / 0.5644 GB, free: 11.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.266e-05/0.1561, allocations: 107.3 kB / 0.5645 GB, free: 11.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1561, allocations: 0 / 0.5645 GB, free: 11.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002909/0.1563, allocations: 32 kB / 0.5645 GB, free: 11.68 MB / 430.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.0008679/0.1572, allocations: 0.7789 MB / 0.5653 GB, free: 10.87 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008864/0.1581, allocations: 168 kB / 0.5655 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1581, allocations: 4 kB / 0.5655 GB, free: 10.7 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.1583, allocations: 63.89 kB / 0.5655 GB, free: 10.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.1587, allocations: 23.14 kB / 0.5655 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003546/0.1622, allocations: 1.979 MB / 0.5675 GB, free: 8.551 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.1626, allocations: 0.7002 MB / 0.5682 GB, free: 7.824 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.64e-05/0.1626, allocations: 12.41 kB / 0.5682 GB, free: 7.812 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.21e-05/0.1627, allocations: 39.42 kB / 0.5682 GB, free: 7.773 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1627, allocations: 0 / 0.5682 GB, free: 7.773 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.1901, allocations: 3.203 MB / 0.5713 GB, free: 4.699 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.58, allocations: 8 kB / 0.5713 GB, free: 4.691 MB / 430.1 MB " [Timeout remaining time 648] (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: 14.860075031989254]