Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 209.8 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.382/1.382, allocations: 230.6 MB / 258.2 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 47.92 kB / 379 MB, free: 2.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2234, allocations: 53.36 MB / 432.4 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001937/0.2254, allocations: 496.5 kB / 432.8 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002973/0.2257, allocations: 63.78 kB / 432.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.051e-05/0.2257, allocations: 0 / 432.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.094e-05/0.2257, allocations: 4 kB / 432.9 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.794e-05/0.2258, allocations: 7.984 kB / 432.9 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002132/0.226, allocations: 27.91 kB / 432.9 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.2261, allocations: 23.97 kB / 433 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.802e-05/0.2262, allocations: 4 kB / 433 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.572e-05/0.2262, allocations: 11.98 kB / 433 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.584e-05/0.2263, allocations: 27.91 kB / 433 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.2263, allocations: 3.984 kB / 433 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.011e-05/0.2263, allocations: 8 kB / 433 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.204e-05/0.2264, allocations: 7.125 kB / 433 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.236e-05/0.2264, allocations: 7.938 kB / 433 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001086/0.2265, allocations: 27.91 kB / 433.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2265, allocations: 4 kB / 433.1 MB, free: 6.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2265, allocations: 0 / 433.1 MB, free: 6.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.2265, allocations: 0 / 433.1 MB, free: 6.266 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.0003787/0.2269, allocations: 285.1 kB / 433.3 MB, free: 5.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2269, allocations: 8.031 kB / 433.4 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.97e-05/0.227, allocations: 12.88 kB / 433.4 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.2271, allocations: 114.4 kB / 433.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.437e-06/0.2271, allocations: 384 / 433.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.2271, allocations: 384 / 433.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.2272, allocations: 62.25 kB / 433.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2272, allocations: 4.125 kB / 433.5 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.2273, allocations: 7.922 kB / 433.6 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.2273, allocations: 0 / 433.6 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.225e-05/0.2273, allocations: 28 kB / 433.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001394/0.2274, allocations: 124.8 kB / 433.7 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.831e-05/0.2275, allocations: 46.55 kB / 433.7 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.154e-05/0.2276, allocations: 28.92 kB / 433.8 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.334e-06/0.2276, allocations: 4 kB / 433.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.099e-05/0.2276, allocations: 68.25 kB / 433.8 MB, free: 5.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.2276, allocations: 0 / 433.8 MB, free: 5.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003066/0.2279, allocations: 187.2 kB / 434 MB, free: 5.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.228, allocations: 85.11 kB / 434.1 MB, free: 5.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.2281, allocations: 113.8 kB / 434.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.2281, allocations: 25.7 kB / 434.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.454e-05/0.2282, allocations: 80.14 kB / 434.3 MB, free: 4.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.2282, allocations: 15.98 kB / 434.3 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-05/0.2282, allocations: 13.72 kB / 434.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.2284, allocations: 322.8 kB / 434.7 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.458e-05/0.2284, allocations: 23.98 kB / 434.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.491e-05/0.2284, allocations: 27.98 kB / 434.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.2285, allocations: 116.2 kB / 434.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2285, allocations: 0 / 434.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001683/0.2287, allocations: 151.5 kB / 435 MB, free: 4.125 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.2287, allocations: 37.77 kB / 435 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.2288, allocations: 7.922 kB / 435 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2288, allocations: 0 / 435 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.2288, allocations: 3.938 kB / 435 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2288, allocations: 0 / 435 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.281e-05/0.2288, allocations: 7.953 kB / 435 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.2288, allocations: 0 / 435 MB, free: 4.062 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.0001094/0.2289, allocations: 151.5 kB / 435.2 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.27e-05/0.2289, allocations: 4 kB / 435.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.228e-05/0.229, allocations: 16.17 kB / 435.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.229, allocations: 4 kB / 435.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.229, allocations: 4 kB / 435.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.229, allocations: 0 / 435.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.2291, allocations: 136.6 kB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2291, allocations: 0 / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.2291, allocations: 0 / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.2291, allocations: 0 / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.2291, allocations: 7.938 kB / 435.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2291, allocations: 0 / 435.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2291, allocations: 0 / 435.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/0.2293, allocations: 198.7 kB / 435.6 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.195e-06/0.2293, allocations: 7.938 kB / 435.6 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.2293, allocations: 3.938 kB / 435.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.168e-05/0.2293, allocations: 0 / 435.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.2294, allocations: 7.984 kB / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.2294, allocations: 0 / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.693e-05/0.2294, allocations: 87.28 kB / 435.7 MB, free: 3.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2294, allocations: 0 / 435.7 MB, free: 3.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000206/0.2296, allocations: 16.03 kB / 435.7 MB, free: 3.34 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.0003244/0.23, allocations: 132.8 kB / 435.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001764/0.2301, allocations: 119.4 kB / 435.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2301, allocations: 0 / 435.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.395e-05/0.2302, allocations: 91.44 kB / 436 MB, free: 2.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.2303, allocations: 4 kB / 436 MB, free: 2.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003023/0.2306, allocations: 178.5 kB / 436.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.231, allocations: 0.6808 MB / 436.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.508e-05/0.231, allocations: 7.438 kB / 436.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.231, allocations: 0 / 436.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of Templates: time 0.002504/0.2335, allocations: 0.6849 MB / 437.6 MB, free: 1.387 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 6.5893379100598395]