Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.001317/0.001317, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001483/0.001483, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.486/1.486, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.251/0.251, allocations: 46.92 MB / 357.1 MB, free: 10.34 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.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 67.89 kB / 0.4909 GB, free: 8.023 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1314, allocations: 65.99 MB / 0.5553 GB, free: 5.91 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001603/0.133, allocations: 485 kB / 0.5558 GB, free: 5.434 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006705/0.1336, allocations: 259.8 kB / 0.5561 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.147e-05/0.1337, allocations: 0 / 0.5561 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.638e-05/0.1337, allocations: 0 / 0.5561 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.42e-06/0.1337, allocations: 0 / 0.5561 GB, free: 5.18 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003511/0.134, allocations: 59.81 kB / 0.5561 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.535e-05/0.1341, allocations: 0 / 0.5561 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.303e-05/0.1342, allocations: 4 kB / 0.5561 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.748e-05/0.1342, allocations: 0 / 0.5561 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.736e-05/0.1342, allocations: 0 / 0.5561 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.157e-06/0.1342, allocations: 3.938 kB / 0.5561 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.1344, allocations: 75.92 kB / 0.5562 GB, free: 5.039 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-06/0.1344, allocations: 0 / 0.5562 GB, free: 5.039 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.989e-05/0.1344, allocations: 4 kB / 0.5562 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.1345, allocations: 51.81 kB / 0.5562 GB, free: 4.984 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1345, allocations: 0 / 0.5562 GB, free: 4.984 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1345, allocations: 4 kB / 0.5563 GB, free: 4.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.1346, allocations: 0 / 0.5563 GB, free: 4.98 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004181/0.135, allocations: 357.1 kB / 0.5566 GB, free: 4.574 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.135, allocations: 12.03 kB / 0.5566 GB, free: 4.562 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.592e-05/0.1351, allocations: 30.75 kB / 0.5566 GB, free: 4.523 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.406e-05/0.1351, allocations: 0.9375 kB / 0.5566 GB, free: 4.523 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.1352, allocations: 160.4 kB / 0.5568 GB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.1352, allocations: 384 / 0.5568 GB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.1352, allocations: 4.375 kB / 0.5568 GB, free: 4.324 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.657e-05/0.1353, allocations: 38.19 kB / 0.5568 GB, free: 4.281 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1353, allocations: 3.938 kB / 0.5568 GB, free: 4.277 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.1353, allocations: 0 / 0.5568 GB, free: 4.277 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1353, allocations: 0 / 0.5568 GB, free: 4.277 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.861e-05/0.1354, allocations: 7.938 kB / 0.5568 GB, free: 4.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.1355, allocations: 145.7 kB / 0.557 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.954e-05/0.1356, allocations: 18.61 kB / 0.557 GB, free: 4.051 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.768e-05/0.1356, allocations: 12.84 kB / 0.557 GB, free: 4.035 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.727e-06/0.1356, allocations: 0 / 0.557 GB, free: 4.035 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.967e-05/0.1357, allocations: 60.2 kB / 0.5571 GB, free: 3.961 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.1357, allocations: 0 / 0.5571 GB, free: 3.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002004/0.1359, allocations: 75.33 kB / 0.5571 GB, free: 3.875 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/0.136, allocations: 81.09 kB / 0.5572 GB, free: 3.777 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.599e-05/0.136, allocations: 93.81 kB / 0.5573 GB, free: 3.676 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.136, allocations: 29.7 kB / 0.5573 GB, free: 3.641 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.327e-05/0.1361, allocations: 85.92 kB / 0.5574 GB, free: 3.555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.1361, allocations: 0 / 0.5574 GB, free: 3.555 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.1361, allocations: 9.719 kB / 0.5574 GB, free: 3.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.1363, allocations: 318.8 kB / 0.5577 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.088e-05/0.1363, allocations: 0 / 0.5577 GB, free: 3.219 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.611e-06/0.1363, allocations: 0 / 0.5577 GB, free: 3.219 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.468e-05/0.1364, allocations: 60.27 kB / 0.5578 GB, free: 3.145 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1364, allocations: 64 / 0.5578 GB, free: 3.145 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.233e-05/0.1365, allocations: 71.33 kB / 0.5579 GB, free: 3.062 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.21e-05/0.1365, allocations: 31.42 kB / 0.5579 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1365, allocations: 3.938 kB / 0.5579 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1366, allocations: 0 / 0.5579 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1366, allocations: 0 / 0.5579 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.1366, allocations: 4 kB / 0.5579 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.884e-05/0.1366, allocations: 4 kB / 0.5579 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.1366, allocations: 0 / 0.5579 GB, free: 3.016 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 0.0001134/0.1367, allocations: 145.8 kB / 0.558 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.825e-06/0.1367, allocations: 0 / 0.558 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.332e-05/0.1367, allocations: 7.062 kB / 0.558 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1367, allocations: 0 / 0.558 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1367, allocations: 0 / 0.558 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1367, allocations: 0 / 0.558 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.1369, allocations: 149.7 kB / 0.5582 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.1369, allocations: 0 / 0.5582 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1369, allocations: 0 / 0.5582 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.1369, allocations: 0 / 0.5582 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.1369, allocations: 7.938 kB / 0.5582 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1369, allocations: 7.938 kB / 0.5582 GB, free: 2.645 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1369, allocations: 0 / 0.5582 GB, free: 2.645 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.137, allocations: 94.77 kB / 0.5583 GB, free: 2.527 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.1371, allocations: 85.03 kB / 0.5584 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.1371, allocations: 3.938 kB / 0.5584 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.119e-05/0.1371, allocations: 4 kB / 0.5584 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.501e-05/0.1371, allocations: 0 / 0.5584 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-06/0.1371, allocations: 8.031 kB / 0.5584 GB, free: 2.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.555e-05/0.1372, allocations: 75.28 kB / 0.5585 GB, free: 2.336 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1372, allocations: 0 / 0.5585 GB, free: 2.336 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.1374, allocations: 23.92 kB / 0.5585 GB, free: 2.312 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001063/0.1385, allocations: 0.8007 MB / 0.5593 GB, free: 1.543 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001194/0.1386, allocations: 59.41 kB / 0.5593 GB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1386, allocations: 0 / 0.5593 GB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.799e-05/0.1386, allocations: 55.41 kB / 0.5594 GB, free: 1.406 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.1388, allocations: 2.188 kB / 0.5594 GB, free: 1.406 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003278/0.1391, allocations: 126.6 kB / 0.5595 GB, free: 1.242 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.1394, allocations: 0.669 MB / 0.5601 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.985e-06/0.1394, allocations: 0 / 0.5601 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.984e-05/0.1394, allocations: 15.38 kB / 0.5602 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1394, allocations: 128 / 0.5602 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.1629, allocations: 1.635 MB / 0.5618 GB, free: 14.97 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.175/8.338, allocations: 4.062 kB / 0.5618 GB, free: 14.97 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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: 11.179252454079688]