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.00128/0.00128, allocations: 114 kB / 20.43 MB, free: 1.457 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.001357/0.001357, allocations: 214.6 kB / 23.74 MB, free: 4.672 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.408/1.408, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.002083/0.002083, allocations: 63.89 kB / 377.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2558, allocations: 53.4 MB / 431.1 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001801/0.2576, allocations: 496.6 kB / 431.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002739/0.2579, allocations: 63.78 kB / 431.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.891e-05/0.2579, allocations: 0 / 431.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.988e-05/0.2579, allocations: 0 / 431.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.007e-05/0.258, allocations: 15.92 kB / 431.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.2582, allocations: 23.91 kB / 431.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.573e-05/0.2583, allocations: 23.97 kB / 431.8 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.659e-05/0.2583, allocations: 4 kB / 431.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.091e-05/0.2583, allocations: 11.98 kB / 431.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.525e-05/0.2584, allocations: 31.89 kB / 431.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.2584, allocations: 4 kB / 431.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.355e-05/0.2585, allocations: 8 kB / 431.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.131e-05/0.2585, allocations: 4 kB / 431.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.223e-05/0.2586, allocations: 7.938 kB / 431.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.2587, allocations: 27.91 kB / 431.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2587, allocations: 0 / 431.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2587, allocations: 0 / 431.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.2587, allocations: 0 / 431.9 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.0003726/0.259, allocations: 296.3 kB / 432.1 MB, free: 5.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2591, allocations: 8.031 kB / 432.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.003e-05/0.2591, allocations: 42.64 kB / 432.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.846e-05/0.2592, allocations: 8.875 kB / 432.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.2593, allocations: 110.5 kB / 432.3 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.2593, allocations: 8.375 kB / 432.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.2593, allocations: 4.375 kB / 432.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.2594, allocations: 66.23 kB / 432.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2595, allocations: 3.938 kB / 432.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.2595, allocations: 0 / 432.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2595, allocations: 4 kB / 432.4 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.261e-05/0.2595, allocations: 35.98 kB / 432.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002675/0.2598, allocations: 223.9 kB / 432.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.916e-05/0.2599, allocations: 58.5 kB / 432.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.333e-05/0.2599, allocations: 48.89 kB / 432.8 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.823e-06/0.26, allocations: 0 / 432.8 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.995e-05/0.26, allocations: 76.2 kB / 432.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.71e-07/0.26, allocations: 0 / 432.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000369/0.2604, allocations: 207.4 kB / 433 MB, free: 4.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.2604, allocations: 81.11 kB / 433.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.568e-05/0.2605, allocations: 117.8 kB / 433.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.2606, allocations: 25.7 kB / 433.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.686e-05/0.2606, allocations: 84.14 kB / 433.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.2606, allocations: 11.91 kB / 433.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.086e-05/0.2607, allocations: 25.7 kB / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2608, allocations: 322.8 kB / 433.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.981e-05/0.2609, allocations: 27.98 kB / 433.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.508e-05/0.2609, allocations: 31.98 kB / 433.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.261, allocations: 136.1 kB / 433.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.261, allocations: 0 / 433.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002009/0.2612, allocations: 183.5 kB / 434.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.627e-05/0.2613, allocations: 37.69 kB / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.2613, allocations: 0 / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2613, allocations: 0 / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.667e-05/0.2613, allocations: 4 kB / 434.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.2613, allocations: 0 / 434.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.258e-05/0.2613, allocations: 4 kB / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.2613, allocations: 8 kB / 434.1 MB, free: 3.508 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.0001147/0.2614, allocations: 155.4 kB / 434.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.075e-05/0.2615, allocations: 7.953 kB / 434.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.136e-05/0.2615, allocations: 12.36 kB / 434.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.2615, allocations: 0 / 434.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.2615, allocations: 0 / 434.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2615, allocations: 8 kB / 434.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.2619, allocations: 403.2 kB / 434.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2619, allocations: 0 / 434.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.398e-06/0.2619, allocations: 7.938 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.2619, allocations: 0 / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.2619, allocations: 4 kB / 434.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2619, allocations: 3.984 kB / 434.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.262, allocations: 4 kB / 434.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000276/0.2622, allocations: 293.7 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.968e-06/0.2622, allocations: 7.984 kB / 435 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.2623, allocations: 0 / 435 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.665e-05/0.2623, allocations: 8 kB / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.997e-05/0.2623, allocations: 0 / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.2623, allocations: 8 kB / 435 MB, free: 2.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.488e-05/0.2624, allocations: 91.27 kB / 435.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2624, allocations: 0 / 435.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002227/0.2626, allocations: 15.94 kB / 435.1 MB, free: 2.402 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.0009139/0.2635, allocations: 0.9123 MB / 436 MB, free: 1.477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002105/0.2637, allocations: 139.4 kB / 436.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2637, allocations: 4 kB / 436.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.845e-05/0.2638, allocations: 103.3 kB / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.264, allocations: 4 kB / 436.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.2655, allocations: 1.547 MB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.2659, allocations: 0.6847 MB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.144e-05/0.2659, allocations: 0 / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.2659, allocations: 11.44 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2659, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.2947, allocations: 2.07 MB / 440.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.96, allocations: 26.64 kB / 440.6 MB, free: 12.85 MB / 350.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/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: 13.347532235085964]