Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001275/0.001275, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001349/0.001349, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2487/0.2487, allocations: 44.92 MB / 359.6 MB, free: 6.277 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 67.91 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3269, allocations: 65.47 MB / 0.5578 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001788/0.3287, allocations: 475.8 kB / 0.5582 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007472/0.3294, allocations: 279.4 kB / 0.5585 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.624e-05/0.3295, allocations: 0 / 0.5585 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.3295, allocations: 5.531 kB / 0.5585 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.803e-06/0.3295, allocations: 0 / 0.5585 GB, free: 6.965 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454: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.0003594/0.3299, allocations: 47.08 kB / 0.5585 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.721e-05/0.3299, allocations: 5.469 kB / 0.5585 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.746e-05/0.3299, allocations: 2.375 kB / 0.5585 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.729e-05/0.33, allocations: 3.984 kB / 0.5586 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.406e-05/0.33, allocations: 1.5 kB / 0.5586 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.626e-06/0.33, allocations: 0 / 0.5586 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.3301, allocations: 67.91 kB / 0.5586 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-06/0.3302, allocations: 1.188 kB / 0.5586 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.871e-05/0.3302, allocations: 4 kB / 0.5586 GB, free: 6.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.3303, allocations: 54.2 kB / 0.5587 GB, free: 6.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.3303, allocations: 3.938 kB / 0.5587 GB, free: 6.855 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3303, allocations: 0 / 0.5587 GB, free: 6.855 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.3303, allocations: 3.984 kB / 0.5587 GB, free: 6.852 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.0003258/0.3306, allocations: 284.8 kB / 0.559 GB, free: 6.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.3307, allocations: 12.03 kB / 0.559 GB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.353e-05/0.3307, allocations: 192 / 0.559 GB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.644e-05/0.3307, allocations: 30.75 kB / 0.559 GB, free: 6.492 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.3307, allocations: 8.938 kB / 0.559 GB, free: 6.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.446e-05/0.3308, allocations: 106.5 kB / 0.5591 GB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.3308, allocations: 4.375 kB / 0.5591 GB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.3308, allocations: 4.375 kB / 0.5591 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.431e-05/0.3309, allocations: 30.02 kB / 0.5591 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.3309, allocations: 0 / 0.5591 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.152e-06/0.3309, allocations: 0 / 0.5591 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.3309, allocations: 4 kB / 0.5591 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.72e-05/0.3309, allocations: 3.984 kB / 0.5592 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.3311, allocations: 116.8 kB / 0.5593 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.295e-05/0.3311, allocations: 22.55 kB / 0.5593 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.3311, allocations: 8.859 kB / 0.5593 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-06/0.3311, allocations: 0 / 0.5593 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.863e-05/0.3312, allocations: 60.2 kB / 0.5593 GB, free: 6.031 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.3312, allocations: 64 / 0.5593 GB, free: 6.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001605/0.3314, allocations: 67.38 kB / 0.5594 GB, free: 5.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.3314, allocations: 85.23 kB / 0.5595 GB, free: 5.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.984e-05/0.3315, allocations: 101.7 kB / 0.5596 GB, free: 5.742 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.3315, allocations: 25.7 kB / 0.5596 GB, free: 5.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.3315, allocations: 84.14 kB / 0.5597 GB, free: 5.625 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.3315, allocations: 0 / 0.5597 GB, free: 5.625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.3316, allocations: 13.72 kB / 0.5597 GB, free: 5.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3317, allocations: 314.8 kB / 0.56 GB, free: 5.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.013e-05/0.3317, allocations: 0 / 0.56 GB, free: 5.289 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.43e-06/0.3317, allocations: 4 kB / 0.56 GB, free: 5.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.389e-05/0.3318, allocations: 60.27 kB / 0.5601 GB, free: 5.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3318, allocations: 0 / 0.5601 GB, free: 5.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.584e-05/0.3319, allocations: 63.41 kB / 0.5601 GB, free: 5.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.3319, allocations: 37.62 kB / 0.5602 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3319, allocations: 0 / 0.5602 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3319, allocations: 4 kB / 0.5602 GB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.3319, allocations: 3.938 kB / 0.5602 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3319, allocations: 96 / 0.5602 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.64e-05/0.332, allocations: 4 kB / 0.5602 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.332, allocations: 0 / 0.5602 GB, free: 5.082 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 9.979e-05/0.3321, allocations: 139.5 kB / 0.5603 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.232e-05/0.3321, allocations: 3.938 kB / 0.5603 GB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.284e-05/0.3321, allocations: 3 kB / 0.5603 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.3321, allocations: 0 / 0.5603 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3321, allocations: 0 / 0.5603 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.3321, allocations: 3.984 kB / 0.5603 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.3322, allocations: 120.8 kB / 0.5604 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3322, allocations: 4 kB / 0.5604 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3322, allocations: 0 / 0.5604 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3322, allocations: 3.938 kB / 0.5604 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-06/0.3322, allocations: 0 / 0.5604 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3322, allocations: 4 kB / 0.5604 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3322, allocations: 4 kB / 0.5605 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/0.3324, allocations: 86.83 kB / 0.5605 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-06/0.3324, allocations: 11.97 kB / 0.5605 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.3324, allocations: 3.938 kB / 0.5606 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.296e-06/0.3324, allocations: 0 / 0.5606 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.487e-05/0.3324, allocations: 3.984 kB / 0.5606 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.3324, allocations: 3.938 kB / 0.5606 GB, free: 4.609 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.55e-05/0.3325, allocations: 79.28 kB / 0.5606 GB, free: 4.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3325, allocations: 0 / 0.5606 GB, free: 4.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002425/0.3327, allocations: 19.94 kB / 0.5607 GB, free: 4.512 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.001033/0.3337, allocations: 0.8071 MB / 0.5614 GB, free: 3.738 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001117/0.3338, allocations: 67.34 kB / 0.5615 GB, free: 3.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3338, allocations: 0 / 0.5615 GB, free: 3.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.359e-05/0.3339, allocations: 63.33 kB / 0.5616 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.334, allocations: 0 / 0.5616 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003147/0.3343, allocations: 126.8 kB / 0.5617 GB, free: 3.422 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.3346, allocations: 0.669 MB / 0.5623 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.801e-06/0.3346, allocations: 0 / 0.5623 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.496e-05/0.3347, allocations: 11.44 kB / 0.5624 GB, free: 2.715 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3347, allocations: 0 / 0.5624 GB, free: 2.715 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.3555, allocations: 1.772 MB / 0.5641 GB, free: 1.086 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.9, allocations: 11.67 kB / 0.5641 GB, free: 1.078 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.856208665994927]