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.0008234/0.0008234, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008674/0.0008674, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9344/0.9344, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.322e-06/1.322e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.433e-05/1.565e-05, allocations: 3.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001006/0.001022, allocations: 485.8 kB / 324.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00026/0.001282, allocations: 70.77 kB / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.715e-05/0.001319, allocations: 0 / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.219e-05/0.001361, allocations: 3.938 kB / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001074/0.001469, allocations: 15.97 kB / 325 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.001652, allocations: 19.92 kB / 325.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.961e-05/0.001751, allocations: 19.98 kB / 325.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.857e-05/0.0018, allocations: 7.984 kB / 325.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.375e-05/0.001844, allocations: 12 kB / 325.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.695e-05/0.001921, allocations: 27.95 kB / 325.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.792e-05/0.001939, allocations: 0 / 325.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.885e-05/0.001987, allocations: 15.88 kB / 325.1 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.064e-05/0.002038, allocations: 7.922 kB / 325.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.002069, allocations: 4 kB / 325.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001095/0.002178, allocations: 27.97 kB / 325.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.002181, allocations: 0 / 325.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.002182, allocations: 0 / 325.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.002187, allocations: 4 kB / 325.2 MB, free: 15.2 MB / 298.7 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.0002977/0.002484, allocations: 288 kB / 325.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.002521, allocations: 11.98 kB / 325.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.078e-05/0.002572, allocations: 50.62 kB / 325.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.552e-05/0.002597, allocations: 12.83 kB / 325.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.455e-05/0.002672, allocations: 105.8 kB / 325.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.002683, allocations: 384 / 325.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.002691, allocations: 4.375 kB / 325.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.002817, allocations: 95.94 kB / 325.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.002825, allocations: 192 / 325.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.002833, allocations: 12.31 kB / 325.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.00284, allocations: 4.125 kB / 325.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.721e-05/0.002887, allocations: 65.67 kB / 325.8 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002339/0.003121, allocations: 212 kB / 326 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.603e-05/0.003217, allocations: 96.25 kB / 326.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.837e-05/0.003275, allocations: 78.59 kB / 326.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.003286, allocations: 0 / 326.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/0.003333, allocations: 68.19 kB / 326.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.003334, allocations: 4 kB / 326.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.000318/0.003652, allocations: 258.8 kB / 326.5 MB, free: 13.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.003701, allocations: 89.03 kB / 326.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.519e-05/0.003776, allocations: 117.9 kB / 326.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.003789, allocations: 25.7 kB / 326.7 MB, free: 13.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.113e-05/0.00383, allocations: 84.14 kB / 326.8 MB, free: 13.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/0.003862, allocations: 23.8 kB / 326.9 MB, free: 13.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/0.003895, allocations: 29.64 kB / 326.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.00399, allocations: 314.8 kB / 327.2 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.458e-05/0.004045, allocations: 57.69 kB / 327.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.215e-05/0.004087, allocations: 65.67 kB / 327.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.25e-05/0.004179, allocations: 128.2 kB / 327.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.004182, allocations: 0 / 327.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001374/0.004319, allocations: 209 kB / 327.6 MB, free: 12.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.004357, allocations: 45.62 kB / 327.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.004364, allocations: 0 / 327.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.004376, allocations: 0 / 327.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.166e-05/0.004397, allocations: 3.938 kB / 327.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.004404, allocations: 0 / 327.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.587e-05/0.00442, allocations: 4 kB / 327.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.00443, allocations: 4 kB / 327.7 MB, free: 12.38 MB / 298.7 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 8.302e-05/0.004513, allocations: 150.5 kB / 327.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.807e-05/0.004531, allocations: 15.88 kB / 327.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.745e-05/0.004548, allocations: 4.438 kB / 327.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.004551, allocations: 8 kB / 327.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.004557, allocations: 0 / 327.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.004561, allocations: 0 / 327.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002966/0.004857, allocations: 444.9 kB / 328.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.004858, allocations: 0 / 328.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.727e-06/0.004862, allocations: 0 / 328.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.004864, allocations: 0 / 328.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.004871, allocations: 4 kB / 328.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.004872, allocations: 0 / 328.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.004873, allocations: 0 / 328.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001773/0.00505, allocations: 322.8 kB / 328.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-06/0.005057, allocations: 7.984 kB / 328.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.005072, allocations: 4 kB / 328.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.652e-05/0.005098, allocations: 4.5 kB / 328.6 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.236e-05/0.005121, allocations: 7.938 kB / 328.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.005125, allocations: 0 / 328.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.391e-05/0.005159, allocations: 99.27 kB / 328.7 MB, free: 11.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005159, allocations: 3.938 kB / 328.7 MB, free: 11.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001508/0.00531, allocations: 12 kB / 328.8 MB, free: 11.21 MB / 298.7 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.0005959/0.005906, allocations: 0.9749 MB / 329.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001888/0.006094, allocations: 194.7 kB / 329.9 MB, free: 9.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.006097, allocations: 0 / 329.9 MB, free: 9.984 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.096e-05/0.006158, allocations: 125.1 kB / 330 MB, free: 9.844 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001473/0.006305, allocations: 4 kB / 330.1 MB, free: 9.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.007331, allocations: 1.7 MB / 331.8 MB, free: 8.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.721e-05/0.007379, allocations: 63.34 kB / 331.8 MB, free: 7.938 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.5e-05/0.007394, allocations: 11.94 kB / 331.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.971e-05/0.007423, allocations: 16.5 kB / 331.8 MB, free: 7.91 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.007424, allocations: 0 / 331.8 MB, free: 7.91 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01469/0.02212, allocations: 2.559 MB / 334.4 MB, free: 5.406 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.96/6.983, allocations: 7.922 kB / 334.4 MB, free: 5.398 MB / 298.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.9992e-05 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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv: Error: Error opening file: Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,success1,success2,success3,success4 Variables in the result: [Calling sys.exit(0), Time elapsed: 8.811695858836174]