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.001277/0.001277, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.00139/0.00139, allocations: 213.3 kB / 23.73 MB, free: 4.531 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.437/1.437, allocations: 230.6 MB / 257.5 MB, free: 7.797 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: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 51.92 kB / 377.7 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2742, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001588/0.2758, allocations: 488.6 kB / 431.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002828/0.2761, allocations: 63.05 kB / 431.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.691e-05/0.2761, allocations: 0 / 431.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.656e-05/0.2761, allocations: 7.922 kB / 431.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.91e-05/0.2762, allocations: 15.97 kB / 431.6 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001662/0.2764, allocations: 15.98 kB / 431.6 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.486e-05/0.2765, allocations: 23.91 kB / 431.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.769e-05/0.2765, allocations: 4 kB / 431.7 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.901e-05/0.2765, allocations: 11.94 kB / 431.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.846e-05/0.2766, allocations: 27.95 kB / 431.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.2766, allocations: 0 / 431.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.392e-05/0.2767, allocations: 12 kB / 431.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.946e-05/0.2767, allocations: 7.922 kB / 431.7 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.06e-05/0.2768, allocations: 7.938 kB / 431.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001156/0.2769, allocations: 29.59 kB / 431.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2769, allocations: 4 kB / 431.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2769, allocations: 0 / 431.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.2769, allocations: 0 / 431.8 MB, free: 5.973 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.0004145/0.2773, allocations: 287.9 kB / 432 MB, free: 5.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2773, allocations: 8.031 kB / 432 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.968e-05/0.2774, allocations: 42.69 kB / 432.1 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.01e-05/0.2774, allocations: 4.938 kB / 432.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.2776, allocations: 114.5 kB / 432.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.2776, allocations: 4.375 kB / 432.2 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.2776, allocations: 4.375 kB / 432.2 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.2777, allocations: 99.88 kB / 432.3 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2778, allocations: 3.938 kB / 432.3 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.2778, allocations: 4 kB / 432.3 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.2778, allocations: 4 kB / 432.3 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.906e-05/0.2779, allocations: 65.67 kB / 432.4 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002812/0.2781, allocations: 216 kB / 432.6 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.2783, allocations: 96.12 kB / 432.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.687e-05/0.2783, allocations: 74.61 kB / 432.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.2784, allocations: 11.98 kB / 432.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.248e-05/0.2784, allocations: 60.25 kB / 432.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.2784, allocations: 0 / 432.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003877/0.2788, allocations: 274.6 kB / 433.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.2789, allocations: 81.09 kB / 433.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.57e-05/0.279, allocations: 117.8 kB / 433.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.279, allocations: 25.7 kB / 433.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.281e-05/0.279, allocations: 80.14 kB / 433.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.945e-05/0.2791, allocations: 15.91 kB / 433.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.164e-05/0.2791, allocations: 25.7 kB / 433.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2793, allocations: 322.8 kB / 433.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.23e-05/0.2793, allocations: 57.69 kB / 433.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.21e-05/0.2794, allocations: 61.67 kB / 433.9 MB, free: 3.594 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.2795, allocations: 136.5 kB / 434 MB, free: 3.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2795, allocations: 0 / 434 MB, free: 3.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002202/0.2797, allocations: 213 kB / 434.2 MB, free: 3.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.2798, allocations: 41.69 kB / 434.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.2798, allocations: 0 / 434.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.2798, allocations: 0 / 434.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.769e-05/0.2798, allocations: 0 / 434.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.2798, allocations: 4 kB / 434.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.018e-05/0.2799, allocations: 4 kB / 434.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.2799, allocations: 4 kB / 434.3 MB, free: 3.16 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.0001145/0.28, allocations: 151.5 kB / 434.4 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.28, allocations: 7.953 kB / 434.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.28, allocations: 4.375 kB / 434.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.28, allocations: 4 kB / 434.4 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.28, allocations: 0 / 434.4 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.28, allocations: 0 / 434.4 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004527/0.2805, allocations: 444.9 kB / 434.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2805, allocations: 0 / 434.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-06/0.2805, allocations: 4 kB / 434.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.2805, allocations: 4.5 kB / 434.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.2805, allocations: 4 kB / 434.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2805, allocations: 3.938 kB / 434.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.2805, allocations: 4 kB / 434.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.2808, allocations: 330.7 kB / 435.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.027e-05/0.2808, allocations: 7.938 kB / 435.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.2808, allocations: 4 kB / 435.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.167e-05/0.2809, allocations: 0 / 435.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.783e-05/0.2809, allocations: 4 kB / 435.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.2809, allocations: 4 kB / 435.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.349e-05/0.281, allocations: 95.27 kB / 435.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.281, allocations: 0 / 435.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002221/0.2812, allocations: 12 kB / 435.3 MB, free: 1.984 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.000912/0.2821, allocations: 0.9747 MB / 436.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000251/0.2823, allocations: 198.8 kB / 436.5 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2823, allocations: 0 / 436.5 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.2824, allocations: 125.1 kB / 436.6 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.2827, allocations: 4 kB / 436.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.2843, allocations: 1.698 MB / 438.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.032e-05/0.2843, allocations: 71.27 kB / 438.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.249e-05/0.2844, allocations: 4 kB / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.2844, allocations: 15.44 kB / 438.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2844, allocations: 0 / 438.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.3131, allocations: 2.467 MB / 440.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.85, allocations: 0 / 440.9 MB, free: 12.31 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] 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: 13.284329897724092]