Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001271/0.001271, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002143/0.002143, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.54/1.54, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.2378/0.2378, allocations: 46.94 MB / 361.6 MB, free: 4.273 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.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 75.88 kB / 0.4969 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3155, allocations: 66.02 MB / 0.5614 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001551/0.3171, allocations: 487.8 kB / 0.5619 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005687/0.3176, allocations: 229.7 kB / 0.5621 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.031e-05/0.3176, allocations: 0 / 0.5621 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.373e-05/0.3177, allocations: 4 kB / 0.5621 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.3177, allocations: 0 / 0.5621 GB, free: 3.785 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320: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.0002719/0.3179, allocations: 47.83 kB / 0.5621 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.52e-05/0.318, allocations: 3.984 kB / 0.5621 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.426e-05/0.318, allocations: 0 / 0.5621 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.527e-05/0.318, allocations: 4 kB / 0.5621 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.924e-05/0.3181, allocations: 0 / 0.5621 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.3181, allocations: 0 / 0.5621 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.3182, allocations: 55.95 kB / 0.5622 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.821e-06/0.3182, allocations: 0 / 0.5622 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.693e-05/0.3182, allocations: 0 / 0.5622 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.3183, allocations: 51.67 kB / 0.5622 GB, free: 3.629 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3183, allocations: 0 / 0.5622 GB, free: 3.629 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3183, allocations: 0 / 0.5622 GB, free: 3.629 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.3183, allocations: 0 / 0.5622 GB, free: 3.629 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.0003255/0.3187, allocations: 278 kB / 0.5625 GB, free: 3.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.3187, allocations: 12.03 kB / 0.5625 GB, free: 3.309 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.311e-05/0.3187, allocations: 4.188 kB / 0.5625 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.661e-05/0.3187, allocations: 34.73 kB / 0.5626 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.103e-05/0.3188, allocations: 0.9375 kB / 0.5626 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.944e-05/0.3188, allocations: 114.5 kB / 0.5627 GB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-06/0.3188, allocations: 384 / 0.5627 GB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.3189, allocations: 384 / 0.5627 GB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.639e-05/0.3189, allocations: 34.02 kB / 0.5627 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.3189, allocations: 0 / 0.5627 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.319, allocations: 0 / 0.5627 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.319, allocations: 0 / 0.5627 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.512e-05/0.319, allocations: 0 / 0.5627 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001272/0.3191, allocations: 124.8 kB / 0.5628 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.008e-05/0.3191, allocations: 22.52 kB / 0.5628 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.125e-05/0.3192, allocations: 4.859 kB / 0.5628 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.3192, allocations: 4.094 kB / 0.5628 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/0.3192, allocations: 60.2 kB / 0.5629 GB, free: 2.805 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3192, allocations: 0 / 0.5629 GB, free: 2.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.3194, allocations: 67.39 kB / 0.563 GB, free: 2.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.3194, allocations: 77.23 kB / 0.563 GB, free: 2.633 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.881e-05/0.3195, allocations: 97.81 kB / 0.5631 GB, free: 2.527 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.3195, allocations: 29.64 kB / 0.5632 GB, free: 2.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.336e-05/0.3195, allocations: 84.08 kB / 0.5632 GB, free: 2.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.225e-05/0.3195, allocations: 0 / 0.5632 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.3196, allocations: 13.72 kB / 0.5633 GB, free: 2.387 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3197, allocations: 310.8 kB / 0.5635 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.227e-06/0.3197, allocations: 0 / 0.5635 GB, free: 2.074 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.095e-05/0.3197, allocations: 7.984 kB / 0.5636 GB, free: 2.066 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.363e-05/0.3198, allocations: 68.33 kB / 0.5636 GB, free: 1.984 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3198, allocations: 0 / 0.5636 GB, free: 1.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.68e-05/0.3199, allocations: 55.41 kB / 0.5637 GB, free: 1.918 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.3199, allocations: 37.64 kB / 0.5637 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.3199, allocations: 0 / 0.5637 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3199, allocations: 3.984 kB / 0.5637 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.465e-06/0.3199, allocations: 4 kB / 0.5637 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.3199, allocations: 3.938 kB / 0.5637 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.33e-05/0.32, allocations: 0 / 0.5637 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.32, allocations: 8.031 kB / 0.5637 GB, free: 1.855 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 8.988e-05/0.32, allocations: 139.5 kB / 0.5639 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.3201, allocations: 3.938 kB / 0.5639 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.837e-06/0.3201, allocations: 3 kB / 0.5639 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3201, allocations: 7.938 kB / 0.5639 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3201, allocations: 0 / 0.5639 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3201, allocations: 3.984 kB / 0.5639 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.025e-05/0.3202, allocations: 116.8 kB / 0.564 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3202, allocations: 0 / 0.564 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3202, allocations: 4 kB / 0.564 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3202, allocations: 7.938 kB / 0.564 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.3202, allocations: 0 / 0.564 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.3202, allocations: 0 / 0.564 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3202, allocations: 0 / 0.564 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.3203, allocations: 90.83 kB / 0.5641 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-06/0.3203, allocations: 0 / 0.5641 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3203, allocations: 3.938 kB / 0.5641 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.435e-06/0.3203, allocations: 7.969 kB / 0.5641 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.372e-05/0.3203, allocations: 4 kB / 0.5641 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.3203, allocations: 0 / 0.5641 GB, free: 1.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.198e-05/0.3204, allocations: 79.22 kB / 0.5642 GB, free: 1.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3204, allocations: 0 / 0.5642 GB, free: 1.309 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002167/0.3206, allocations: 23.92 kB / 0.5642 GB, free: 1.285 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.0007224/0.3213, allocations: 0.7155 MB / 0.5649 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.3214, allocations: 67.33 kB / 0.565 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3214, allocations: 4 kB / 0.565 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.572e-05/0.3215, allocations: 51.41 kB / 0.565 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.3216, allocations: 4 kB / 0.565 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000284/0.3219, allocations: 114.6 kB / 0.5651 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.3222, allocations: 0.6729 MB / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.14e-06/0.3222, allocations: 4.125 kB / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.318e-05/0.3222, allocations: 7.438 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3222, allocations: 0 / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.3422, allocations: 1.556 MB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.58, allocations: 11.48 kB / 0.5673 GB, free: 14.13 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.54480368096847]