Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.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.001227/0.001227, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001416/0.001416, allocations: 211 kB / 23.73 MB, free: 4.523 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.383/1.383, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 51.92 kB / 377.7 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2464, allocations: 53.36 MB / 431 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001558/0.248, allocations: 488.7 kB / 431.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002495/0.2483, allocations: 70.97 kB / 431.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.835e-05/0.2483, allocations: 0 / 431.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.483e-05/0.2483, allocations: 0 / 431.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.784e-05/0.2484, allocations: 11.98 kB / 431.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001473/0.2485, allocations: 23.91 kB / 431.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.337e-05/0.2486, allocations: 19.98 kB / 431.6 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.856e-05/0.2486, allocations: 11.92 kB / 431.7 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.869e-05/0.2487, allocations: 15.92 kB / 431.7 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.731e-05/0.2487, allocations: 19.98 kB / 431.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.2488, allocations: 0 / 431.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.733e-05/0.2488, allocations: 7.984 kB / 431.7 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.405e-05/0.2488, allocations: 15.92 kB / 431.7 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.542e-05/0.2489, allocations: 4 kB / 431.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.799e-05/0.2489, allocations: 25.59 kB / 431.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.249, allocations: 0 / 431.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.249, allocations: 0 / 431.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.249, allocations: 4 kB / 431.8 MB, free: 6.004 MB / 334.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.000324/0.2493, allocations: 287.9 kB / 432 MB, free: 5.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2493, allocations: 12.03 kB / 432 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.416e-05/0.2494, allocations: 46.62 kB / 432.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.545e-05/0.2494, allocations: 4.938 kB / 432.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.371e-05/0.2495, allocations: 114.4 kB / 432.2 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.2495, allocations: 384 / 432.2 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.2495, allocations: 4.375 kB / 432.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.2497, allocations: 99.94 kB / 432.3 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.2497, allocations: 3.938 kB / 432.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.2497, allocations: 0 / 432.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.2497, allocations: 7.984 kB / 432.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.485e-05/0.2498, allocations: 61.69 kB / 432.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002389/0.25, allocations: 219.9 kB / 432.6 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.2501, allocations: 92.19 kB / 432.7 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.132e-05/0.2502, allocations: 82.58 kB / 432.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.2502, allocations: 0 / 432.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/0.2503, allocations: 60.27 kB / 432.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.91e-07/0.2503, allocations: 0 / 432.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003723/0.2506, allocations: 278.8 kB / 433.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.2507, allocations: 81.11 kB / 433.2 MB, free: 4.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.969e-05/0.2508, allocations: 113.8 kB / 433.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.2508, allocations: 25.7 kB / 433.3 MB, free: 4.211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.163e-05/0.2508, allocations: 88.14 kB / 433.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.2508, allocations: 11.91 kB / 433.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.095e-05/0.2509, allocations: 25.7 kB / 433.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.251, allocations: 314.8 kB / 433.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.111e-05/0.2511, allocations: 65.67 kB / 433.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.571e-05/0.2511, allocations: 62 kB / 433.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.2513, allocations: 132.2 kB / 434 MB, free: 3.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2513, allocations: 11.94 kB / 434 MB, free: 3.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002183/0.2515, allocations: 204.9 kB / 434.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.2515, allocations: 41.62 kB / 434.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2515, allocations: 4 kB / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.2515, allocations: 0 / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.671e-05/0.2516, allocations: 0 / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.2516, allocations: 0 / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.17e-05/0.2516, allocations: 4 kB / 434.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.455e-06/0.2516, allocations: 0 / 434.3 MB, free: 3.195 MB / 334.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.0001099/0.2517, allocations: 155.5 kB / 434.4 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.2517, allocations: 3.953 kB / 434.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.233e-05/0.2518, allocations: 12.38 kB / 434.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2518, allocations: 4 kB / 434.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2518, allocations: 3.984 kB / 434.4 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2518, allocations: 0 / 434.4 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004334/0.2522, allocations: 444.9 kB / 434.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.2522, allocations: 0 / 434.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.661e-06/0.2522, allocations: 0 / 434.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.2522, allocations: 0 / 434.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.2522, allocations: 4 kB / 434.9 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.2522, allocations: 0 / 434.9 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2522, allocations: 7.922 kB / 434.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.2525, allocations: 326.8 kB / 435.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.608e-06/0.2525, allocations: 11.95 kB / 435.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.2525, allocations: 0 / 435.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.268e-05/0.2526, allocations: 4 kB / 435.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.2526, allocations: 4 kB / 435.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.2526, allocations: 7.984 kB / 435.2 MB, free: 2.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.777e-05/0.2527, allocations: 87.22 kB / 435.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2527, allocations: 0 / 435.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002251/0.2529, allocations: 16 kB / 435.3 MB, free: 2.016 MB / 334.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.0008679/0.2537, allocations: 0.9788 MB / 436.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002295/0.254, allocations: 194.8 kB / 436.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.254, allocations: 0 / 436.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.2541, allocations: 129 kB / 436.6 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.2543, allocations: 17.69 kB / 436.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.2558, allocations: 1.692 MB / 438.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.573e-05/0.2558, allocations: 71.28 kB / 438.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.2e-05/0.2558, allocations: 0 / 438.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.984e-05/0.2559, allocations: 19.44 kB / 438.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2559, allocations: 0 / 438.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.2839, allocations: 2.484 MB / 440.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.57, allocations: 13.69 kB / 440.9 MB, free: 12.3 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 12.898774525994668]