Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001213, allocations: 118.6 kB / 18.5 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 214.6 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 230.2 MB / 254.5 MB, free: 15.4 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 63.89 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09688, allocations: 53.32 MB / 426.6 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001586/0.09846, allocations: 482.9 kB / 427.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002914/0.09875, allocations: 63.8 kB / 427.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.676e-05/0.09879, allocations: 0 / 427.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.812e-05/0.09883, allocations: 7.984 kB / 427.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.236e-05/0.0989, allocations: 11.98 kB / 427.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001771/0.09908, allocations: 23.92 kB / 427.2 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.215e-05/0.09917, allocations: 23.91 kB / 427.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.818e-05/0.09922, allocations: 0 / 427.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.305e-05/0.09925, allocations: 11.98 kB / 427.2 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.678e-05/0.09933, allocations: 27.97 kB / 427.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.09935, allocations: 0 / 427.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.463e-05/0.09939, allocations: 7.938 kB / 427.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.22e-05/0.09943, allocations: 11.97 kB / 427.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.923e-05/0.09946, allocations: 11.94 kB / 427.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.617e-05/0.09956, allocations: 27.86 kB / 427.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.09956, allocations: 0 / 427.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.09957, allocations: 0 / 427.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.09957, allocations: 0 / 427.3 MB, free: 4.336 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004238/0.1, allocations: 365 kB / 427.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1, allocations: 12.03 kB / 427.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.1001, allocations: 42.69 kB / 427.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.689e-05/0.1001, allocations: 12.83 kB / 427.8 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.1003, allocations: 172.4 kB / 427.9 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.1003, allocations: 4.375 kB / 427.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.1003, allocations: 4.375 kB / 427.9 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.1004, allocations: 66.23 kB / 428 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.1004, allocations: 3.938 kB / 428 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.1004, allocations: 0 / 428 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.1004, allocations: 4 kB / 428 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.935e-05/0.1005, allocations: 31.98 kB / 428 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002623/0.1008, allocations: 252.8 kB / 428.3 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.387e-05/0.1009, allocations: 66.48 kB / 428.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.114e-05/0.1009, allocations: 48.89 kB / 428.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.29e-06/0.1009, allocations: 0 / 428.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/0.101, allocations: 68.25 kB / 428.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.101, allocations: 3.938 kB / 428.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003331/0.1013, allocations: 211.4 kB / 428.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.768e-05/0.1014, allocations: 81.11 kB / 428.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.603e-05/0.1015, allocations: 113.8 kB / 428.9 MB, free: 2.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1015, allocations: 29.7 kB / 428.9 MB, free: 2.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.499e-05/0.1015, allocations: 84.14 kB / 429 MB, free: 2.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.1016, allocations: 19.84 kB / 429 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.1016, allocations: 21.72 kB / 429 MB, free: 2.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1017, allocations: 318.8 kB / 429.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.342e-05/0.1018, allocations: 31.98 kB / 429.4 MB, free: 2.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.583e-05/0.1018, allocations: 31.98 kB / 429.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.1019, allocations: 136.2 kB / 429.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1019, allocations: 0 / 429.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001874/0.1021, allocations: 175.2 kB / 429.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.1022, allocations: 33.7 kB / 429.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-06/0.1022, allocations: 0 / 429.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1022, allocations: 0 / 429.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.682e-05/0.1022, allocations: 3.984 kB / 429.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.1022, allocations: 0 / 429.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.199e-05/0.1022, allocations: 7.938 kB / 429.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.1022, allocations: 4.438 kB / 429.7 MB, free: 1.641 MB / 350.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: 8 ($outputAlias_success4,success4,$outputAlias_success3,success3,$outputAlias_success2,success2,$outputAlias_success1,success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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.0001156/0.1023, allocations: 163.3 kB / 429.9 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.1024, allocations: 15.88 kB / 429.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.829e-05/0.1024, allocations: 8.375 kB / 429.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.1024, allocations: 0 / 429.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1024, allocations: 0 / 429.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1024, allocations: 8 kB / 429.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000412/0.1028, allocations: 432.2 kB / 430.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1028, allocations: 0 / 430.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.244e-06/0.1028, allocations: 3.938 kB / 430.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1028, allocations: 8 kB / 430.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.1028, allocations: 0 / 430.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.1028, allocations: 0 / 430.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.1028, allocations: 0 / 430.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.1031, allocations: 293.1 kB / 430.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.586e-05/0.1031, allocations: 77.11 kB / 430.7 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.1032, allocations: 4 kB / 430.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.079e-05/0.1032, allocations: 0 / 430.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.873e-05/0.1032, allocations: 11.98 kB / 430.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.1032, allocations: 11.98 kB / 430.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.961e-05/0.1033, allocations: 87.27 kB / 430.8 MB, free: 432 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1033, allocations: 0 / 430.8 MB, free: 432 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002203/0.1035, allocations: 19.94 kB / 430.9 MB, free: 412 kB / 350.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: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 4 ($outputAlias_success4,$outputAlias_success3,$outputAlias_success2,$outputAlias_success1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.0008385/0.1043, allocations: 0.9046 MB / 431.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001898/0.1045, allocations: 135.4 kB / 431.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1045, allocations: 0 / 431.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.501e-05/0.1046, allocations: 95.83 kB / 432 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001907/0.1048, allocations: 4 kB / 432 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.1062, allocations: 1.562 MB / 433.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.1066, allocations: 0.6885 MB / 434.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.216e-05/0.1066, allocations: 4 kB / 434.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.716e-05/0.1066, allocations: 11.44 kB / 434.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1066, allocations: 0 / 434.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.1289, allocations: 1.924 MB / 436.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.472/7.601, allocations: 15.97 kB / 436.2 MB, free: 11.01 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.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: 10.08128417795524]