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.0008287/0.0008287, 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.0008759/0.0008759, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.8723/0.8723, allocations: 177 MB / 204.1 MB, free: 5.73 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.863e-06/1.863e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.446e-05/1.632e-05, allocations: 3.266 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001302/0.001319, allocations: 489.9 kB / 325 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002593/0.001578, allocations: 58.78 kB / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.036e-05/0.001608, allocations: 0 / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.064e-05/0.001639, allocations: 0 / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.142e-05/0.00172, allocations: 19.91 kB / 325 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001618/0.001882, allocations: 19.92 kB / 325.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.832e-05/0.00198, allocations: 27.97 kB / 325.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.341e-05/0.002024, allocations: 8 kB / 325.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.323e-05/0.002067, allocations: 11.98 kB / 325.1 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.555e-05/0.002142, allocations: 23.97 kB / 325.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.002159, allocations: 0 / 325.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.624e-05/0.002205, allocations: 11.94 kB / 325.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.286e-05/0.002248, allocations: 15.91 kB / 325.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.794e-05/0.002276, allocations: 7.938 kB / 325.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.002379, allocations: 19.98 kB / 325.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.00238, allocations: 0 / 325.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.002381, allocations: 4 kB / 325.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.002385, allocations: 0 / 325.2 MB, free: 15.19 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.0003262/0.002711, allocations: 288 kB / 325.5 MB, free: 14.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.002755, allocations: 15.98 kB / 325.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.039e-05/0.002816, allocations: 42.62 kB / 325.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.064e-05/0.002846, allocations: 12.83 kB / 325.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.863e-05/0.002935, allocations: 113.8 kB / 325.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.002947, allocations: 4.312 kB / 325.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.002958, allocations: 4.375 kB / 325.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.003112, allocations: 95.94 kB / 325.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.003126, allocations: 4.188 kB / 325.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.003135, allocations: 384 / 325.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.003142, allocations: 4.125 kB / 325.8 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.95e-05/0.003211, allocations: 65.62 kB / 325.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002528/0.003464, allocations: 220 kB / 326 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.00358, allocations: 88.25 kB / 326.1 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.61e-05/0.003656, allocations: 82.53 kB / 326.2 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.003667, allocations: 0 / 326.2 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.003712, allocations: 68.19 kB / 326.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.003713, allocations: 0 / 326.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.000383/0.004096, allocations: 262.9 kB / 326.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.004145, allocations: 93.09 kB / 326.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.311e-05/0.004218, allocations: 113.9 kB / 326.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.00423, allocations: 25.7 kB / 326.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.556e-05/0.004266, allocations: 88.14 kB / 326.8 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.004294, allocations: 19.8 kB / 326.9 MB, free: 13.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.004329, allocations: 25.7 kB / 326.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.995e-05/0.004409, allocations: 314.8 kB / 327.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.893e-05/0.004448, allocations: 65.62 kB / 327.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.405e-05/0.004482, allocations: 57.67 kB / 327.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.949e-05/0.004561, allocations: 136.2 kB / 327.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.004563, allocations: 0 / 327.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001294/0.004692, allocations: 205 kB / 327.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.00472, allocations: 37.62 kB / 327.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.004724, allocations: 0 / 327.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.004736, allocations: 0 / 327.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.606e-05/0.004752, allocations: 7.984 kB / 327.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.004758, allocations: 3.938 kB / 327.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.51e-05/0.004773, allocations: 0 / 327.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.597e-06/0.004782, allocations: 8 kB / 327.7 MB, free: 12.37 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 6.665e-05/0.004849, allocations: 146.5 kB / 327.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.545e-05/0.004864, allocations: 11.89 kB / 327.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.801e-05/0.004882, allocations: 16.44 kB / 327.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.004884, allocations: 0 / 327.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.004888, allocations: 0 / 327.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.004891, allocations: 0 / 327.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.005162, allocations: 444.9 kB / 328.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.005165, allocations: 4 kB / 328.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.324e-06/0.005167, allocations: 0 / 328.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.005169, allocations: 3.938 kB / 328.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.005175, allocations: 0 / 328.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.005176, allocations: 4 kB / 328.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.005177, allocations: 0 / 328.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.00534, allocations: 322.8 kB / 328.6 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.823e-06/0.005346, allocations: 7.984 kB / 328.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.005359, allocations: 0 / 328.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.665e-05/0.005386, allocations: 4.5 kB / 328.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.912e-05/0.005405, allocations: 0 / 328.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.005412, allocations: 8 kB / 328.7 MB, free: 11.31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.414e-05/0.005446, allocations: 95.2 kB / 328.7 MB, free: 11.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005446, allocations: 3.938 kB / 328.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001578/0.005604, allocations: 16 kB / 328.8 MB, free: 11.2 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.0006132/0.006217, allocations: 0.9708 MB / 329.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001658/0.006383, allocations: 194.7 kB / 329.9 MB, free: 9.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.006384, allocations: 0 / 329.9 MB, free: 9.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.314e-05/0.006438, allocations: 125.1 kB / 330 MB, free: 9.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.006577, allocations: 4 kB / 330.1 MB, free: 9.836 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009844/0.007562, allocations: 1.704 MB / 331.8 MB, free: 8.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.886e-05/0.007611, allocations: 75.28 kB / 331.8 MB, free: 7.918 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.095e-05/0.007622, allocations: 3.938 kB / 331.8 MB, free: 7.914 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.712e-05/0.007649, allocations: 16.5 kB / 331.8 MB, free: 7.898 MB / 298.7 MB Notification: Performance of SimCode: time 6.61e-07/0.007649, allocations: 0 / 331.8 MB, free: 7.898 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01574/0.02339, allocations: 2.553 MB / 334.4 MB, free: 5.398 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.943/6.967, allocations: 4.938 kB / 334.4 MB, free: 5.395 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.610257411375642]