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.001339/0.001339, allocations: 83.67 kB / 21.7 MB, free: 2.844 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.001436/0.001436, allocations: 163 kB / 24.99 MB, free: 9.273 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.9326/0.9326, allocations: 177 MB / 205.2 MB, free: 5.582 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: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 272.9 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.401e-05, allocations: 9.266 kB / 273 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001632/0.001656, allocations: 498.9 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002575/0.001914, allocations: 63.8 kB / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.588e-05/0.001949, allocations: 0 / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.059e-05/0.00199, allocations: 4 kB / 273.5 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.073e-05/0.002071, allocations: 19.91 kB / 273.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001876/0.002258, allocations: 19.92 kB / 273.6 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.002359, allocations: 19.97 kB / 273.6 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.226e-05/0.002402, allocations: 7.922 kB / 273.6 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.553e-05/0.002447, allocations: 12 kB / 273.6 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.452e-05/0.002532, allocations: 27.95 kB / 273.6 MB, free: 1.137 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.002549, allocations: 0 / 273.6 MB, free: 1.137 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.511e-05/0.002594, allocations: 4 kB / 273.6 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.416e-05/0.002639, allocations: 7.984 kB / 273.6 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.512e-05/0.002674, allocations: 11.94 kB / 273.6 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.002786, allocations: 27.91 kB / 273.7 MB, free: 1.086 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.002789, allocations: 4 kB / 273.7 MB, free: 1.082 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.00279, allocations: 0 / 273.7 MB, free: 1.082 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.002794, allocations: 0 / 273.7 MB, free: 1.082 MB / 250.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.000347/0.003141, allocations: 386.3 kB / 274 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.00319, allocations: 11.98 kB / 274.1 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.003238, allocations: 8.891 kB / 274.1 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.003341, allocations: 120.5 kB / 274.2 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.003354, allocations: 4.375 kB / 274.2 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.003367, allocations: 4.375 kB / 274.2 MB, free: 500 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.003474, allocations: 67.95 kB / 274.3 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.003482, allocations: 192 / 274.3 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.003492, allocations: 384 / 274.3 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.0035, allocations: 384 / 274.3 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.628e-05/0.003536, allocations: 37.64 kB / 274.3 MB, free: 376 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001207/0.003657, allocations: 116.7 kB / 274.4 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.714e-05/0.003724, allocations: 72.69 kB / 274.5 MB, free: 132 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.327e-05/0.003757, allocations: 41.45 kB / 274.5 MB, free: 80 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.109e-06/0.003762, allocations: 3.938 kB / 274.5 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.823e-05/0.00382, allocations: 63.09 kB / 274.6 MB, free: 16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.003822, allocations: 4 kB / 274.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003896/0.004211, allocations: 158.7 kB / 274.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.004259, allocations: 81.11 kB / 274.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.004366, allocations: 173.9 kB / 275 MB, free: 15.53 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.004376, allocations: 25.7 kB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.004425, allocations: 138.8 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.004445, allocations: 7.891 kB / 275.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.966e-05/0.004485, allocations: 27.36 kB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.004614, allocations: 496.1 kB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.932e-05/0.004643, allocations: 29.7 kB / 275.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.573e-05/0.004669, allocations: 37.69 kB / 275.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.139e-05/0.004731, allocations: 79.16 kB / 275.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.004734, allocations: 3.984 kB / 275.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001271/0.004861, allocations: 117.1 kB / 275.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/0.004895, allocations: 32.36 kB / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.004899, allocations: 0 / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.004912, allocations: 0 / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.621e-06/0.004917, allocations: 11.92 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.004922, allocations: 0 / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.407e-05/0.004946, allocations: 7.891 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.004955, allocations: 4 kB / 276 MB, free: 14.45 MB / 266.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: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.0001047/0.005059, allocations: 186.3 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.005077, allocations: 4 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.685e-05/0.005094, allocations: 15.98 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.005096, allocations: 0 / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.005099, allocations: 0 / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.005102, allocations: 3.938 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.652e-05/0.005189, allocations: 120.6 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.00519, allocations: 0 / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.322e-06/0.005192, allocations: 256 / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.005194, allocations: 0 / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.005205, allocations: 8 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.005206, allocations: 4 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.005208, allocations: 0 / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001806/0.005388, allocations: 183.6 kB / 276.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.957e-06/0.005397, allocations: 0 / 276.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.005419, allocations: 4 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.353e-05/0.005432, allocations: 0 / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.221e-05/0.005444, allocations: 0 / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.005455, allocations: 11.98 kB / 276.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.815e-05/0.005503, allocations: 123.2 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.005504, allocations: 0 / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002239/0.005728, allocations: 15.94 kB / 276.7 MB, free: 13.7 MB / 266.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: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0003008/0.006028, allocations: 133.9 kB / 276.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001487/0.006177, allocations: 138.5 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.006179, allocations: 0 / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.105e-05/0.00624, allocations: 108.8 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.006391, allocations: 4 kB / 277 MB, free: 13.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002529/0.006644, allocations: 160 kB / 277.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.83e-05/0.006682, allocations: 59.34 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.142e-06/0.006688, allocations: 0 / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.41e-05/0.006702, allocations: 8.5 kB / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.006703, allocations: 0 / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of Templates: time 0.003336/0.01004, allocations: 0.6983 MB / 278 MB, free: 12.3 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6163282389752567]