Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001319/0.001319, allocations: 118.9 kB / 17.83 MB, free: 5.203 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.001981/0.001981, allocations: 210.3 kB / 20.8 MB, free: 2.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 207.6 MB / 231.2 MB, free: 4.125 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3276/0.3276, allocations: 44.23 MB / 327.3 MB, free: 6.707 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002633/0.002633, allocations: 68.38 kB / 462.9 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3227, allocations: 61 MB / 0.5116 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001407/0.3241, allocations: 0.4907 MB / 0.5121 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004821/0.3246, allocations: 210.8 kB / 0.5123 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.164e-05/0.3247, allocations: 1.156 kB / 0.5123 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.522e-05/0.3247, allocations: 4 kB / 0.5123 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.009e-06/0.3247, allocations: 0 / 0.5123 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002472/0.3249, allocations: 37.5 kB / 0.5123 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.85e-05/0.325, allocations: 6.469 kB / 0.5123 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.87e-05/0.325, allocations: 1.125 kB / 0.5123 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.412e-05/0.325, allocations: 3.984 kB / 0.5124 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.063e-05/0.325, allocations: 13.2 kB / 0.5124 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.119e-06/0.325, allocations: 0 / 0.5124 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.3252, allocations: 50.89 kB / 0.5124 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.013e-06/0.3252, allocations: 0 / 0.5124 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.604e-05/0.3252, allocations: 1.219 kB / 0.5124 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.3253, allocations: 44 kB / 0.5125 GB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3253, allocations: 1.125 kB / 0.5125 GB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3253, allocations: 0 / 0.5125 GB, free: 12.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.3253, allocations: 0 / 0.5125 GB, free: 12.48 MB / 382.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.0002725/0.3256, allocations: 351.6 kB / 0.5128 GB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.3256, allocations: 13.08 kB / 0.5128 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.801e-05/0.3256, allocations: 1.312 kB / 0.5128 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.43e-05/0.3256, allocations: 34.75 kB / 0.5128 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.229e-05/0.3257, allocations: 9.984 kB / 0.5128 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.735e-05/0.3257, allocations: 172.3 kB / 0.513 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.3257, allocations: 2.375 kB / 0.513 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.931e-06/0.3257, allocations: 384 / 0.513 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.965e-05/0.3258, allocations: 32.14 kB / 0.513 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3258, allocations: 3.938 kB / 0.513 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-06/0.3258, allocations: 1.375 kB / 0.5131 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.3258, allocations: 0 / 0.5131 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.606e-05/0.3258, allocations: 1.156 kB / 0.5131 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.318e-05/0.3259, allocations: 142.8 kB / 0.5132 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.534e-05/0.3259, allocations: 28.91 kB / 0.5132 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.163e-05/0.326, allocations: 6.016 kB / 0.5132 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.785e-06/0.326, allocations: 0 / 0.5132 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.326, allocations: 61.36 kB / 0.5133 GB, free: 11.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.326, allocations: 0 / 0.5133 GB, free: 11.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001434/0.3261, allocations: 67.2 kB / 0.5133 GB, free: 11.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.3262, allocations: 82.36 kB / 0.5134 GB, free: 11.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.812e-05/0.3262, allocations: 93.86 kB / 0.5135 GB, free: 11.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.071e-06/0.3262, allocations: 26.77 kB / 0.5135 GB, free: 11.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.166e-06/0.3262, allocations: 80.14 kB / 0.5136 GB, free: 11.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.3262, allocations: 1.125 kB / 0.5136 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/0.3262, allocations: 11.62 kB / 0.5136 GB, free: 11.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.681e-05/0.3263, allocations: 310.8 kB / 0.5139 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-06/0.3263, allocations: 1.094 kB / 0.5139 GB, free: 10.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.923e-06/0.3263, allocations: 5.094 kB / 0.5139 GB, free: 10.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.933e-05/0.3263, allocations: 71.34 kB / 0.514 GB, free: 10.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3263, allocations: 1 kB / 0.514 GB, free: 10.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.182e-05/0.3264, allocations: 62.31 kB / 0.5141 GB, free: 10.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.3264, allocations: 34.48 kB / 0.5141 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.3264, allocations: 1.125 kB / 0.5141 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.3264, allocations: 0 / 0.5141 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.3264, allocations: 1.219 kB / 0.5141 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.3264, allocations: 0 / 0.5141 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.615e-05/0.3264, allocations: 5.375 kB / 0.5141 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.3264, allocations: 3.984 kB / 0.5141 GB, free: 10.59 MB / 382.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 4.818e-05/0.3265, allocations: 133.8 kB / 0.5142 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.928e-06/0.3265, allocations: 9.031 kB / 0.5142 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.288e-06/0.3265, allocations: 7.125 kB / 0.5142 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3265, allocations: 1.375 kB / 0.5142 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3265, allocations: 0 / 0.5142 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3265, allocations: 0 / 0.5142 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.893e-05/0.3266, allocations: 147.9 kB / 0.5144 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3266, allocations: 4 kB / 0.5144 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.3266, allocations: 3.938 kB / 0.5144 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3266, allocations: 5.094 kB / 0.5144 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.3266, allocations: 1.5 kB / 0.5144 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3266, allocations: 3.938 kB / 0.5144 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3266, allocations: 3.984 kB / 0.5144 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.522e-05/0.3266, allocations: 89.3 kB / 0.5145 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.351e-05/0.3267, allocations: 78.48 kB / 0.5146 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.3267, allocations: 9.094 kB / 0.5146 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-06/0.3267, allocations: 0 / 0.5146 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.085e-05/0.3267, allocations: 1.25 kB / 0.5146 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.3267, allocations: 1.125 kB / 0.5146 GB, free: 10.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.245e-05/0.3267, allocations: 75.28 kB / 0.5147 GB, free: 9.934 MB / 382.1 MB Notification: Performance of sort global known variables: time 4e-08/0.3267, allocations: 0 / 0.5147 GB, free: 9.934 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002333/0.3269, allocations: 23.42 kB / 0.5147 GB, free: 9.922 MB / 382.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.0005503/0.3275, allocations: 0.7246 MB / 0.5154 GB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.887e-05/0.3276, allocations: 66.77 kB / 0.5154 GB, free: 9.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3276, allocations: 0 / 0.5154 GB, free: 9.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.742e-05/0.3276, allocations: 58.84 kB / 0.5155 GB, free: 9.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.3277, allocations: 7.312 kB / 0.5155 GB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002445/0.328, allocations: 126.3 kB / 0.5156 GB, free: 8.941 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.826e-05/0.3281, allocations: 0.6728 MB / 0.5163 GB, free: 8.242 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.941e-06/0.3281, allocations: 4.125 kB / 0.5163 GB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.367e-06/0.3281, allocations: 7.438 kB / 0.5163 GB, free: 8.23 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3281, allocations: 0 / 0.5163 GB, free: 8.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01736/0.3454, allocations: 1.438 MB / 0.5177 GB, free: 7.285 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.284/8.629, allocations: 6.562 kB / 0.5177 GB, free: 7.281 MB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 11.359803377999924]