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.001203/0.001203, allocations: 96.27 kB / 20.96 MB, free: 3.477 MB / 18.57 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.0009918/0.0009918, allocations: 156.9 kB / 24.26 MB, free: 176 kB / 18.57 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 0.8927/0.8927, allocations: 177 MB / 204.5 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] 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.2429/0.2429, allocations: 34.24 MB / 295.2 MB, free: 0.6641 MB / 266.7 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 1.643e-06/1.643e-06, allocations: 0 / 376.7 MB, free: 3.449 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.699e-05/1.864e-05, allocations: 6.312 kB / 376.7 MB, free: 3.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002036/0.002055, allocations: 1.856 MB / 378.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006834/0.002738, allocations: 0.5648 MB / 379.1 MB, free: 1 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.002796, allocations: 4 kB / 379.1 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.92e-05/0.002835, allocations: 11.86 kB / 379.1 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001888/0.003024, allocations: 43.58 kB / 379.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002081/0.003232, allocations: 83.75 kB / 379.3 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001303/0.003362, allocations: 159.4 kB / 379.4 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.003468, allocations: 29.22 kB / 379.4 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.003653, allocations: 103.7 kB / 379.5 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.868e-05/0.003722, allocations: 47.88 kB / 379.6 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.003745, allocations: 12 kB / 379.6 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.245e-05/0.003787, allocations: 20 kB / 379.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.003808, allocations: 27.91 kB / 379.6 MB, free: 480 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.939e-05/0.003848, allocations: 47.83 kB / 379.7 MB, free: 432 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.004008, allocations: 151.5 kB / 379.8 MB, free: 280 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.00401, allocations: 0 / 379.8 MB, free: 280 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.00401, allocations: 4 kB / 379.8 MB, free: 276 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.004014, allocations: 0 / 379.8 MB, free: 276 kB / 346.7 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.0005267/0.004541, allocations: 377.8 kB / 380.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.004578, allocations: 8.031 kB / 380.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.211e-05/0.00461, allocations: 38.75 kB / 380.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.004781, allocations: 44.86 kB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.004891, allocations: 137.5 kB / 380.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.004904, allocations: 12.36 kB / 380.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.004926, allocations: 4.375 kB / 380.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.005158, allocations: 191.1 kB / 380.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.005166, allocations: 192 / 380.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.005181, allocations: 12.11 kB / 380.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.005187, allocations: 0 / 380.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.005359, allocations: 95.86 kB / 380.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005181/0.005878, allocations: 398.8 kB / 381.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.006079, allocations: 82.52 kB / 381.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.723e-05/0.006156, allocations: 44.92 kB / 381.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.006171, allocations: 0 / 381.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.907e-05/0.00619, allocations: 38.56 kB / 381.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 7.31e-07/0.006191, allocations: 3.938 kB / 381.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007758/0.006967, allocations: 321.1 kB / 381.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.007009, allocations: 106.8 kB / 381.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.566e-05/0.007105, allocations: 149.1 kB / 381.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.00712, allocations: 25.7 kB / 381.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.671e-05/0.007176, allocations: 112.2 kB / 382 MB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.007191, allocations: 23.84 kB / 382 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.393e-05/0.007235, allocations: 29.7 kB / 382.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.073e-05/0.007326, allocations: 322.8 kB / 382.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.007448, allocations: 63.94 kB / 382.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.007608, allocations: 147.6 kB / 382.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/0.007838, allocations: 138.5 kB / 382.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.007839, allocations: 64 / 382.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002917/0.008131, allocations: 177.5 kB / 382.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.008145, allocations: 8 kB / 382.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.008151, allocations: 0 / 382.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.008169, allocations: 3.938 kB / 382.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006688/0.008837, allocations: 83.91 kB / 383 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008679/0.009705, allocations: 1.401 MB / 384.4 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.964e-05/0.009805, allocations: 23.97 kB / 384.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.009815, allocations: 12.17 kB / 384.4 MB, free: 11.32 MB / 362.7 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 7.592e-05/0.00989, allocations: 125.7 kB / 384.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.324e-05/0.009914, allocations: 7.953 kB / 384.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002463/0.01016, allocations: 162.4 kB / 384.7 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.72e-07/0.01016, allocations: 4 kB / 384.7 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-07/0.01016, allocations: 0 / 384.7 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.01016, allocations: 0 / 384.7 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004194/0.01058, allocations: 421.4 kB / 385.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01058, allocations: 0 / 385.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.131e-05/0.01066, allocations: 23.97 kB / 385.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.01066, allocations: 4 kB / 385.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.01067, allocations: 4 kB / 385.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.01067, allocations: 0 / 385.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.01067, allocations: 0 / 385.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002601/0.01093, allocations: 267.2 kB / 385.4 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.14e-05/0.01094, allocations: 7.906 kB / 385.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.01095, allocations: 7.984 kB / 385.4 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.141e-05/0.01104, allocations: 19.98 kB / 385.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.01109, allocations: 11.98 kB / 385.5 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.01109, allocations: 7.938 kB / 385.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.323e-05/0.01114, allocations: 115.2 kB / 385.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01114, allocations: 0 / 385.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001728/0.01132, allocations: 24 kB / 385.6 MB, free: 10.05 MB / 362.7 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.0004253/0.01174, allocations: 0.7826 MB / 386.4 MB, free: 9.238 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004507/0.01219, allocations: 164 kB / 386.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.0122, allocations: 0 / 386.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.01231, allocations: 67.88 kB / 386.6 MB, free: 9.012 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.01257, allocations: 11.94 kB / 386.6 MB, free: 9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.01462, allocations: 1.99 MB / 388.6 MB, free: 6.914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.104e-05/0.01467, allocations: 88.17 kB / 388.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.096e-05/0.01472, allocations: 20.47 kB / 388.7 MB, free: 6.789 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.406e-05/0.01479, allocations: 40.47 kB / 388.8 MB, free: 6.746 MB / 362.7 MB Notification: Performance of SimCode: time 8.52e-07/0.0148, allocations: 0 / 388.8 MB, free: 6.746 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.03309, allocations: 4.038 MB / 392.8 MB, free: 2.766 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.806/7.839, allocations: 14.91 kB / 392.8 MB, free: 2.754 MB / 362.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins/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: 9.760924093425274]