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.001943/0.001943, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002303/0.002303, allocations: 213.9 kB / 24.48 MB, free: 3.836 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.495/1.495, allocations: 230.5 MB / 258.1 MB, free: 7.793 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: 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 0.002185/0.002185, allocations: 59.89 kB / 379 MB, free: 2.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2592, allocations: 53.4 MB / 432.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00171/0.2609, allocations: 496.5 kB / 432.8 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003035/0.2612, allocations: 58.97 kB / 432.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.327e-05/0.2612, allocations: 0 / 432.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.836e-05/0.2612, allocations: 7.984 kB / 432.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.902e-05/0.2613, allocations: 7.984 kB / 432.9 MB, free: 6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001678/0.2615, allocations: 19.92 kB / 432.9 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.2616, allocations: 27.95 kB / 433 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.818e-05/0.2617, allocations: 8 kB / 433 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.374e-05/0.2617, allocations: 11.94 kB / 433 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.188e-05/0.2618, allocations: 27.95 kB / 433 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.2618, allocations: 0 / 433 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.53e-05/0.2618, allocations: 7.938 kB / 433 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.138e-05/0.2619, allocations: 11.92 kB / 433 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.533e-05/0.2619, allocations: 8 kB / 433 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.262, allocations: 26.86 kB / 433.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.262, allocations: 0 / 433.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2621, allocations: 0 / 433.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.2621, allocations: 0 / 433.1 MB, free: 5.855 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.0003981/0.2625, allocations: 291.7 kB / 433.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.2625, allocations: 19.92 kB / 433.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.401e-05/0.2625, allocations: 4.891 kB / 433.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.2627, allocations: 114.5 kB / 433.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.2627, allocations: 384 / 433.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.2627, allocations: 4.375 kB / 433.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.2629, allocations: 83.95 kB / 433.6 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2629, allocations: 192 / 433.6 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.2629, allocations: 7.938 kB / 433.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2629, allocations: 0 / 433.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.855e-05/0.263, allocations: 61.69 kB / 433.6 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/0.2631, allocations: 101.3 kB / 433.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.2632, allocations: 76.25 kB / 433.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.487e-05/0.2633, allocations: 62.62 kB / 433.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.2633, allocations: 0 / 433.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.742e-05/0.2633, allocations: 64.25 kB / 433.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.01e-07/0.2633, allocations: 0 / 433.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003809/0.2637, allocations: 246.6 kB / 434.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.2638, allocations: 81.11 kB / 434.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.2639, allocations: 109.8 kB / 434.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.2639, allocations: 29.73 kB / 434.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.813e-05/0.264, allocations: 84.14 kB / 434.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.264, allocations: 15.94 kB / 434.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.264, allocations: 13.72 kB / 434.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.2642, allocations: 318.8 kB / 434.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.471e-05/0.2643, allocations: 49.69 kB / 434.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.285e-05/0.2643, allocations: 57.69 kB / 434.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.2644, allocations: 120.2 kB / 435 MB, free: 3.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.2644, allocations: 0 / 435 MB, free: 3.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002084/0.2646, allocations: 189.2 kB / 435.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.48e-05/0.2647, allocations: 35.89 kB / 435.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.2647, allocations: 4.062 kB / 435.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.2647, allocations: 3.938 kB / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.2647, allocations: 0 / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.2647, allocations: 0 / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.662e-05/0.2647, allocations: 15.88 kB / 435.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.333e-06/0.2647, allocations: 4.188 kB / 435.3 MB, free: 3.359 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: 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.0001288/0.2649, allocations: 151.5 kB / 435.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.517e-05/0.2649, allocations: 7.984 kB / 435.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.88e-05/0.2649, allocations: 4 kB / 435.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2649, allocations: 7.938 kB / 435.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2649, allocations: 4 kB / 435.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.2649, allocations: 0 / 435.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.265, allocations: 109.2 kB / 435.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.265, allocations: 4 kB / 435.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.265, allocations: 0 / 435.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.265, allocations: 0 / 435.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.265, allocations: 0 / 435.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.265, allocations: 3.984 kB / 435.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.2651, allocations: 7.938 kB / 435.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.2653, allocations: 228.4 kB / 435.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.006e-05/0.2653, allocations: 4 kB / 435.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.2653, allocations: 4.031 kB / 435.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.493e-05/0.2654, allocations: 4 kB / 435.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.228e-05/0.2654, allocations: 11.92 kB / 435.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.2654, allocations: 4 kB / 435.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.766e-05/0.2654, allocations: 83.28 kB / 435.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2654, allocations: 0 / 435.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001936/0.2656, allocations: 8 kB / 435.9 MB, free: 2.641 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: 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.0003681/0.266, allocations: 136.1 kB / 436 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002268/0.2662, allocations: 178.8 kB / 436.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2662, allocations: 0 / 436.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.252e-05/0.2663, allocations: 117.1 kB / 436.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001589/0.2665, allocations: 11.92 kB / 436.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003343/0.2668, allocations: 196.3 kB / 436.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.259e-05/0.2669, allocations: 63.34 kB / 436.6 MB, free: 1.855 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.414e-05/0.2669, allocations: 7.438 kB / 436.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2669, allocations: 4.125 kB / 436.6 MB, free: 1.844 MB / 334.1 MB Notification: Performance of Templates: time 0.002384/0.2693, allocations: 0.6807 MB / 437.3 MB, free: 1.172 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] 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: 6.984286000952125]