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.001771/0.001771, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001929/0.001929, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.512/1.512, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.2438/0.2438, allocations: 46.97 MB / 361.7 MB, free: 4.035 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 68.08 kB / 0.4968 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3597/0.3617, allocations: 66.03 MB / 0.5613 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00175/0.3635, allocations: 499.8 kB / 0.5618 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007095/0.3642, allocations: 253.6 kB / 0.562 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.369e-05/0.3642, allocations: 0 / 0.562 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.15e-05/0.3642, allocations: 0 / 0.562 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.3642, allocations: 0 / 0.562 GB, free: 3.516 MB / 398.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.0003209/0.3645, allocations: 55.81 kB / 0.5621 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.896e-05/0.3646, allocations: 4 kB / 0.5621 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.946e-05/0.3646, allocations: 11.92 kB / 0.5621 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.703e-05/0.3646, allocations: 3.938 kB / 0.5621 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.201e-05/0.3647, allocations: 3.938 kB / 0.5621 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-06/0.3647, allocations: 0 / 0.5621 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.3648, allocations: 71.94 kB / 0.5622 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.346e-06/0.3648, allocations: 0 / 0.5622 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.3649, allocations: 0 / 0.5622 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.365, allocations: 47.73 kB / 0.5622 GB, free: 3.324 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.365, allocations: 0 / 0.5622 GB, free: 3.324 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.365, allocations: 4 kB / 0.5622 GB, free: 3.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.365, allocations: 0 / 0.5622 GB, free: 3.32 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003544/0.3654, allocations: 289.9 kB / 0.5625 GB, free: 3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3654, allocations: 8.031 kB / 0.5625 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.244e-05/0.3654, allocations: 4.188 kB / 0.5625 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.431e-05/0.3654, allocations: 30.75 kB / 0.5626 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.222e-05/0.3655, allocations: 0.9375 kB / 0.5626 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.504e-05/0.3655, allocations: 102.5 kB / 0.5627 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.098e-06/0.3656, allocations: 384 / 0.5627 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-06/0.3656, allocations: 4.375 kB / 0.5627 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.731e-05/0.3657, allocations: 63.7 kB / 0.5627 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3657, allocations: 0 / 0.5627 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.3657, allocations: 7.938 kB / 0.5627 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3657, allocations: 4 kB / 0.5627 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.3e-05/0.3657, allocations: 25.7 kB / 0.5628 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.3659, allocations: 116.8 kB / 0.5629 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.888e-05/0.3659, allocations: 44.27 kB / 0.5629 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.454e-05/0.3659, allocations: 38.66 kB / 0.5629 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-06/0.366, allocations: 0 / 0.5629 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.664e-05/0.366, allocations: 60.2 kB / 0.563 GB, free: 2.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 5.01e-06/0.366, allocations: 3.984 kB / 0.563 GB, free: 2.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002005/0.3662, allocations: 122.7 kB / 0.5631 GB, free: 2.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/0.3663, allocations: 89.23 kB / 0.5632 GB, free: 2.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.414e-05/0.3663, allocations: 93.81 kB / 0.5633 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.3664, allocations: 25.7 kB / 0.5633 GB, free: 1.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.3664, allocations: 80.14 kB / 0.5634 GB, free: 1.898 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.3664, allocations: 0 / 0.5634 GB, free: 1.898 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-05/0.3664, allocations: 13.72 kB / 0.5634 GB, free: 1.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3666, allocations: 310.8 kB / 0.5637 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.402e-05/0.3666, allocations: 25.7 kB / 0.5637 GB, free: 1.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.423e-05/0.3666, allocations: 33.69 kB / 0.5638 GB, free: 1.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.395e-05/0.3667, allocations: 68.2 kB / 0.5638 GB, free: 1.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3667, allocations: 4.062 kB / 0.5638 GB, free: 1.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.671e-05/0.3668, allocations: 81.11 kB / 0.5639 GB, free: 1.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.3668, allocations: 45.56 kB / 0.564 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3668, allocations: 7.938 kB / 0.564 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.3668, allocations: 0 / 0.564 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.3668, allocations: 0 / 0.564 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.187e-06/0.3668, allocations: 0 / 0.564 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.391e-05/0.3669, allocations: 0 / 0.564 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.3669, allocations: 4 kB / 0.564 GB, free: 1.25 MB / 398.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.0001029/0.367, allocations: 135.5 kB / 0.5641 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.367, allocations: 11.97 kB / 0.5641 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.105e-05/0.367, allocations: 3 kB / 0.5641 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.367, allocations: 0 / 0.5641 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.367, allocations: 3.984 kB / 0.5641 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.367, allocations: 0 / 0.5641 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.998e-05/0.3671, allocations: 112.8 kB / 0.5642 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3671, allocations: 4 kB / 0.5642 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.3671, allocations: 0 / 0.5642 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.3671, allocations: 3.938 kB / 0.5642 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.3671, allocations: 0 / 0.5642 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3671, allocations: 3.938 kB / 0.5642 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3671, allocations: 4 kB / 0.5642 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001181/0.3672, allocations: 116.5 kB / 0.5643 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-06/0.3672, allocations: 0 / 0.5643 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.3673, allocations: 7.938 kB / 0.5644 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.213e-05/0.3673, allocations: 4 kB / 0.5644 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.935e-05/0.3673, allocations: 3.984 kB / 0.5644 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3673, allocations: 0 / 0.5644 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.59e-05/0.3673, allocations: 79.28 kB / 0.5644 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3673, allocations: 0 / 0.5644 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.3676, allocations: 15.94 kB / 0.5645 GB, free: 0.6602 MB / 398.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.001116/0.3687, allocations: 0.8588 MB / 0.5653 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001295/0.3688, allocations: 114.8 kB / 0.5654 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3688, allocations: 4 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.492e-05/0.3689, allocations: 85.11 kB / 0.5655 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001247/0.369, allocations: 0 / 0.5655 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003418/0.3693, allocations: 144.3 kB / 0.5656 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.156e-05/0.3694, allocations: 55.36 kB / 0.5657 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.35e-06/0.3694, allocations: 3.938 kB / 0.5657 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.875e-05/0.3694, allocations: 11.56 kB / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3694, allocations: 0 / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02152/0.3909, allocations: 1.811 MB / 0.5675 GB, free: 13.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.86, allocations: 9.344 kB / 0.5675 GB, free: 13.64 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.802565096062608]