Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007985/0.0007985, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007397/0.0007397, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8742/0.8742, allocations: 173.4 MB / 200.4 MB, free: 9.414 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.999e-05, allocations: 2.281 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001118/0.001138, allocations: 481 kB / 318.9 MB, free: 5.902 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002031/0.001341, allocations: 56.22 kB / 318.9 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.701e-05/0.001368, allocations: 0 / 318.9 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.819e-05/0.001396, allocations: 7.922 kB / 318.9 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.105e-05/0.001467, allocations: 11.98 kB / 318.9 MB, free: 5.828 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.001619, allocations: 19.92 kB / 319 MB, free: 5.809 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.692e-05/0.001706, allocations: 19.97 kB / 319 MB, free: 5.789 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.751e-05/0.001744, allocations: 4 kB / 319 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.806e-05/0.001782, allocations: 23.97 kB / 319 MB, free: 5.762 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.407e-05/0.001846, allocations: 19.98 kB / 319 MB, free: 5.742 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.00186, allocations: 3.938 kB / 319 MB, free: 5.738 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.035e-05/0.001901, allocations: 15.92 kB / 319.1 MB, free: 5.723 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.785e-05/0.001939, allocations: 0 / 319.1 MB, free: 5.723 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.351e-05/0.001962, allocations: 4 kB / 319.1 MB, free: 5.719 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.412e-05/0.002056, allocations: 31.91 kB / 319.1 MB, free: 5.688 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.002058, allocations: 0 / 319.1 MB, free: 5.688 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.002059, allocations: 0 / 319.1 MB, free: 5.688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.002063, allocations: 0 / 319.1 MB, free: 5.688 MB / 282.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.0002634/0.002326, allocations: 292 kB / 319.4 MB, free: 5.363 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.002364, allocations: 12.92 kB / 319.4 MB, free: 5.352 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.229e-05/0.002416, allocations: 50.61 kB / 319.4 MB, free: 5.293 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.542e-05/0.002442, allocations: 8.938 kB / 319.4 MB, free: 5.285 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.919e-05/0.002521, allocations: 109.8 kB / 319.5 MB, free: 5.152 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-06/0.00253, allocations: 4.312 kB / 319.6 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.002539, allocations: 4.375 kB / 319.6 MB, free: 5.145 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.002664, allocations: 95.94 kB / 319.7 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.002673, allocations: 4.188 kB / 319.7 MB, free: 5.035 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.002681, allocations: 384 / 319.7 MB, free: 5.035 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.002687, allocations: 4.125 kB / 319.7 MB, free: 5.031 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.838e-05/0.002756, allocations: 69.67 kB / 319.7 MB, free: 4.957 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002395/0.002995, allocations: 216 kB / 319.9 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.717e-05/0.003082, allocations: 88.25 kB / 320 MB, free: 4.602 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.155e-05/0.003134, allocations: 78.59 kB / 320.1 MB, free: 4.516 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.003146, allocations: 0 / 320.1 MB, free: 4.516 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.003184, allocations: 68.2 kB / 320.2 MB, free: 4.434 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.012e-06/0.003185, allocations: 0 / 320.2 MB, free: 4.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002788/0.003464, allocations: 270.6 kB / 320.4 MB, free: 4.145 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.479e-05/0.003498, allocations: 81.11 kB / 320.5 MB, free: 4.047 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.096e-05/0.003559, allocations: 109.8 kB / 320.6 MB, free: 3.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.00357, allocations: 29.7 kB / 320.6 MB, free: 3.895 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.945e-05/0.003599, allocations: 88.14 kB / 320.7 MB, free: 3.805 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.295e-05/0.003622, allocations: 19.8 kB / 320.8 MB, free: 3.785 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.089e-05/0.003653, allocations: 25.7 kB / 320.8 MB, free: 3.754 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.719e-05/0.00373, allocations: 314.8 kB / 321.1 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.207e-05/0.003772, allocations: 61.67 kB / 321.1 MB, free: 3.371 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.257e-05/0.003805, allocations: 66.02 kB / 321.2 MB, free: 3.301 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.988e-05/0.003885, allocations: 140.2 kB / 321.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.003886, allocations: 0 / 321.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001335/0.00402, allocations: 201 kB / 321.5 MB, free: 2.934 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.004052, allocations: 45.62 kB / 321.6 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.004056, allocations: 4 kB / 321.6 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.004067, allocations: 0 / 321.6 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.597e-05/0.004083, allocations: 0 / 321.6 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.79e-06/0.004089, allocations: 4 kB / 321.6 MB, free: 2.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.557e-05/0.004105, allocations: 0 / 321.6 MB, free: 2.875 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.004113, allocations: 4 kB / 321.6 MB, free: 2.871 MB / 282.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.98e-05/0.004183, allocations: 147.5 kB / 321.7 MB, free: 2.711 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.609e-05/0.004199, allocations: 11.89 kB / 321.8 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.655e-05/0.004215, allocations: 4.438 kB / 321.8 MB, free: 2.688 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.004219, allocations: 4 kB / 321.8 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.004223, allocations: 4.438 kB / 321.8 MB, free: 2.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.004227, allocations: 3.984 kB / 321.8 MB, free: 2.676 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.004518, allocations: 440.9 kB / 322.2 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.00452, allocations: 4 kB / 322.2 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.499e-06/0.004525, allocations: 0 / 322.2 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.004528, allocations: 4 kB / 322.2 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.004534, allocations: 0 / 322.2 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.004535, allocations: 3.938 kB / 322.2 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.004536, allocations: 0 / 322.2 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001681/0.004704, allocations: 330.7 kB / 322.5 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.51e-06/0.00471, allocations: 0 / 322.5 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.004723, allocations: 8 kB / 322.5 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.698e-05/0.00475, allocations: 4 kB / 322.5 MB, free: 1.801 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.6e-05/0.004766, allocations: 4 kB / 322.6 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.004771, allocations: 7.984 kB / 322.6 MB, free: 1.789 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.328e-05/0.004805, allocations: 91.27 kB / 322.6 MB, free: 1.699 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004805, allocations: 0 / 322.6 MB, free: 1.699 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001507/0.004955, allocations: 12 kB / 322.7 MB, free: 1.688 MB / 282.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.0005816/0.005537, allocations: 0.978 MB / 323.6 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001582/0.005695, allocations: 190.8 kB / 323.8 MB, free: 488 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.005697, allocations: 4 kB / 323.8 MB, free: 484 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.366e-05/0.005751, allocations: 121.1 kB / 323.9 MB, free: 344 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.005893, allocations: 4 kB / 324 MB, free: 340 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009712/0.006864, allocations: 1.712 MB / 325.7 MB, free: 14.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.754e-05/0.006912, allocations: 67.34 kB / 325.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.121e-05/0.006923, allocations: 0 / 325.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.835e-05/0.006951, allocations: 20.48 kB / 325.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of SimCode: time 8.62e-07/0.006952, allocations: 4 kB / 325.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01393/0.02088, allocations: 2.556 MB / 328.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.85/6.871, allocations: 10.42 kB / 328.3 MB, free: 11.89 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.508253409527242]