Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.001656/0.001656, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001654/0.001654, allocations: 211.7 kB / 23.73 MB, free: 4.387 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.504/1.504, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2281/0.2281, allocations: 44.94 MB / 358.9 MB, free: 6.051 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.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",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.002126/0.002126, allocations: 63.91 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3432, allocations: 65.48 MB / 0.5569 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001761/0.3449, allocations: 494.9 kB / 0.5574 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006764/0.3456, allocations: 216 kB / 0.5576 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.26e-05/0.3456, allocations: 0 / 0.5576 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.623e-05/0.3457, allocations: 1.125 kB / 0.5576 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.3457, allocations: 4 kB / 0.5576 GB, free: 6.809 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.346, allocations: 41.78 kB / 0.5577 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.389e-05/0.3461, allocations: 2.281 kB / 0.5577 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.39e-05/0.3461, allocations: 5.109 kB / 0.5577 GB, free: 6.777 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.071e-05/0.3461, allocations: 3.984 kB / 0.5577 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.603e-05/0.3462, allocations: 1.188 kB / 0.5577 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.3462, allocations: 0 / 0.5577 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001569/0.3463, allocations: 58.33 kB / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.3463, allocations: 4 kB / 0.5577 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.415e-05/0.3464, allocations: 0 / 0.5577 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.3465, allocations: 39.69 kB / 0.5578 GB, free: 6.691 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3465, allocations: 4 kB / 0.5578 GB, free: 6.688 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3465, allocations: 0 / 0.5578 GB, free: 6.688 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.3465, allocations: 0 / 0.5578 GB, free: 6.688 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.0004067/0.3469, allocations: 286 kB / 0.5581 GB, free: 6.371 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.347, allocations: 11.97 kB / 0.5581 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.485e-05/0.347, allocations: 30.75 kB / 0.5581 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.347, allocations: 0.9375 kB / 0.5581 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.367e-05/0.3471, allocations: 106.5 kB / 0.5582 GB, free: 6.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3472, allocations: 384 / 0.5582 GB, free: 6.191 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.3472, allocations: 384 / 0.5582 GB, free: 6.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.3473, allocations: 63.95 kB / 0.5583 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3473, allocations: 7.938 kB / 0.5583 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3473, allocations: 7.938 kB / 0.5583 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.3473, allocations: 0 / 0.5583 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.653e-05/0.3474, allocations: 25.7 kB / 0.5583 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.3475, allocations: 116.8 kB / 0.5584 GB, free: 5.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.796e-05/0.3476, allocations: 48.36 kB / 0.5585 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.699e-05/0.3476, allocations: 34.56 kB / 0.5585 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.3476, allocations: 0 / 0.5585 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.3477, allocations: 56.27 kB / 0.5585 GB, free: 5.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.021e-06/0.3477, allocations: 0 / 0.5585 GB, free: 5.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002177/0.3479, allocations: 138.6 kB / 0.5587 GB, free: 5.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.3479, allocations: 77.11 kB / 0.5587 GB, free: 5.484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.012e-05/0.348, allocations: 93.81 kB / 0.5588 GB, free: 5.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.348, allocations: 25.7 kB / 0.5589 GB, free: 5.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.348, allocations: 80.14 kB / 0.5589 GB, free: 5.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.3481, allocations: 0 / 0.5589 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.3481, allocations: 13.72 kB / 0.5589 GB, free: 5.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3482, allocations: 310.8 kB / 0.5592 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.249e-05/0.3483, allocations: 25.7 kB / 0.5593 GB, free: 4.906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.887e-05/0.3483, allocations: 37.81 kB / 0.5593 GB, free: 4.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.764e-05/0.3484, allocations: 68.27 kB / 0.5594 GB, free: 4.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3484, allocations: 0 / 0.5594 GB, free: 4.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.364e-05/0.3484, allocations: 85.11 kB / 0.5595 GB, free: 4.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.3485, allocations: 33.69 kB / 0.5595 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3485, allocations: 3.938 kB / 0.5595 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.3485, allocations: 0 / 0.5595 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3485, allocations: 0 / 0.5595 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.3485, allocations: 0 / 0.5595 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.085e-05/0.3485, allocations: 8 kB / 0.5595 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.3485, allocations: 32 / 0.5595 GB, free: 4.629 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.3486, allocations: 139.5 kB / 0.5596 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.253e-06/0.3486, allocations: 0 / 0.5596 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.501e-05/0.3486, allocations: 6.938 kB / 0.5596 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3487, allocations: 3.984 kB / 0.5596 GB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3487, allocations: 3.984 kB / 0.5596 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.3487, allocations: 3.938 kB / 0.5596 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.3488, allocations: 116.8 kB / 0.5598 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3488, allocations: 0 / 0.5598 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.3488, allocations: 0 / 0.5598 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.3488, allocations: 0 / 0.5598 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3488, allocations: 7.938 kB / 0.5598 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3488, allocations: 3.938 kB / 0.5598 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.3488, allocations: 0 / 0.5598 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.3489, allocations: 116.5 kB / 0.5599 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.104e-06/0.3489, allocations: 8 kB / 0.5599 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.3489, allocations: 3.938 kB / 0.5599 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.052e-05/0.3489, allocations: 7.938 kB / 0.5599 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.447e-05/0.3489, allocations: 3.984 kB / 0.5599 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.3489, allocations: 4 kB / 0.5599 GB, free: 4.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.667e-05/0.349, allocations: 75.28 kB / 0.56 GB, free: 4.043 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.349, allocations: 4.031 kB / 0.56 GB, free: 4.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.3492, allocations: 15.94 kB / 0.56 GB, free: 4.023 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.0008037/0.35, allocations: 0.7508 MB / 0.5607 GB, free: 3.266 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001293/0.3502, allocations: 106.8 kB / 0.5608 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3502, allocations: 0 / 0.5608 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.606e-05/0.3502, allocations: 85.09 kB / 0.5609 GB, free: 3.035 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.3503, allocations: 4 kB / 0.5609 GB, free: 3.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003188/0.3507, allocations: 144.3 kB / 0.5611 GB, free: 2.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.9e-05/0.3507, allocations: 55.36 kB / 0.5611 GB, free: 2.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.081e-06/0.3507, allocations: 8.062 kB / 0.5611 GB, free: 2.762 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.686e-05/0.3507, allocations: 7.438 kB / 0.5611 GB, free: 2.754 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3507, allocations: 0 / 0.5611 GB, free: 2.754 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.3798, allocations: 1.94 MB / 0.563 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.49, allocations: 0 / 0.563 GB, free: 0.9492 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.394161646720022]