Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001359/0.001359, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.00147/0.00147, allocations: 209.4 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 207.7 MB / 235.3 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 63.92 kB / 347.2 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2803, allocations: 49.15 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001502/0.2818, allocations: 496.4 kB / 396.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003125/0.2821, allocations: 56.31 kB / 396.9 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.146e-05/0.2821, allocations: 1.375 kB / 396.9 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.571e-05/0.2822, allocations: 8.781 kB / 396.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.013e-05/0.2823, allocations: 12.44 kB / 396.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.2825, allocations: 26.33 kB / 396.9 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.2826, allocations: 19.11 kB / 396.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.398e-05/0.2826, allocations: 7.734 kB / 396.9 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.016e-05/0.2827, allocations: 14.05 kB / 396.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.912e-05/0.2828, allocations: 30.31 kB / 397 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.2828, allocations: 1.125 kB / 397 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.521e-05/0.2828, allocations: 4.594 kB / 397 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.999e-05/0.2829, allocations: 5.422 kB / 397 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.229e-05/0.2829, allocations: 10.89 kB / 397 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001196/0.2831, allocations: 32.83 kB / 397 MB, free: 8.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2831, allocations: 0 / 397 MB, free: 8.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2831, allocations: 1.062 kB / 397 MB, free: 8.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2831, allocations: 0 / 397 MB, free: 8.504 MB / 318.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.0003046/0.2834, allocations: 288.1 kB / 397.3 MB, free: 8.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.2834, allocations: 14.25 kB / 397.3 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.649e-05/0.2835, allocations: 39.27 kB / 397.4 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.425e-05/0.2835, allocations: 7.047 kB / 397.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.751e-05/0.2836, allocations: 110.5 kB / 397.5 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.2836, allocations: 6.594 kB / 397.5 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.2836, allocations: 6.562 kB / 397.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.2838, allocations: 100.1 kB / 397.6 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2838, allocations: 3.938 kB / 397.6 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2838, allocations: 1.375 kB / 397.6 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.2838, allocations: 1.812 kB / 397.6 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.226e-05/0.2839, allocations: 60.75 kB / 397.7 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002261/0.2841, allocations: 221.8 kB / 397.9 MB, free: 7.664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.941e-05/0.2842, allocations: 93.67 kB / 398 MB, free: 7.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.021e-05/0.2843, allocations: 78.94 kB / 398 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.2843, allocations: 0 / 398 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.2843, allocations: 68.83 kB / 398.1 MB, free: 7.473 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.2843, allocations: 3.938 kB / 398.1 MB, free: 7.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003391/0.2847, allocations: 275 kB / 398.4 MB, free: 7.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.2847, allocations: 80.94 kB / 398.5 MB, free: 7.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.707e-05/0.2848, allocations: 115.4 kB / 398.6 MB, free: 7.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.395e-06/0.2848, allocations: 26.73 kB / 398.6 MB, free: 7.086 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.211e-05/0.2848, allocations: 82.12 kB / 398.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.2848, allocations: 20.95 kB / 398.7 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/0.2849, allocations: 23.89 kB / 398.7 MB, free: 6.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.654e-05/0.2849, allocations: 315.3 kB / 399 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.25e-05/0.285, allocations: 59.95 kB / 399.1 MB, free: 6.621 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.856e-05/0.285, allocations: 65.64 kB / 399.2 MB, free: 6.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.2851, allocations: 133.8 kB / 399.3 MB, free: 6.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2851, allocations: 0 / 399.3 MB, free: 6.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001885/0.2853, allocations: 206.1 kB / 399.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.2853, allocations: 34.64 kB / 399.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2853, allocations: 0.75 kB / 399.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2854, allocations: 1 kB / 399.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.761e-05/0.2854, allocations: 1.047 kB / 399.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.2854, allocations: 5.078 kB / 399.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.197e-05/0.2854, allocations: 6.781 kB / 399.5 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.2854, allocations: 11.05 kB / 399.5 MB, free: 6.336 MB / 318.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 7.235e-05/0.2855, allocations: 152.3 kB / 399.7 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.2855, allocations: 11.77 kB / 399.7 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.077e-05/0.2855, allocations: 11.56 kB / 399.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.2855, allocations: 2.156 kB / 399.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2855, allocations: 0 / 399.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2855, allocations: 0 / 399.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003391/0.2859, allocations: 438.7 kB / 400.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2859, allocations: 0.7969 kB / 400.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.141e-06/0.2859, allocations: 1.312 kB / 400.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2859, allocations: 4 kB / 400.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.2859, allocations: 3.375 kB / 400.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.2859, allocations: 1.656 kB / 400.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2859, allocations: 0.75 kB / 400.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002166/0.2861, allocations: 327.8 kB / 400.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.854e-06/0.2861, allocations: 8.203 kB / 400.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.2861, allocations: 6.906 kB / 400.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.231e-05/0.2862, allocations: 1.5 kB / 400.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.682e-05/0.2862, allocations: 3.422 kB / 400.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.2862, allocations: 3.859 kB / 400.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.286e-05/0.2862, allocations: 89.5 kB / 400.6 MB, free: 5.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2862, allocations: 4.969 kB / 400.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.2865, allocations: 15.56 kB / 400.6 MB, free: 5.488 MB / 318.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.0008174/0.2873, allocations: 0.9709 MB / 401.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002533/0.2875, allocations: 198.8 kB / 401.8 MB, free: 4.527 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2875, allocations: 0 / 401.8 MB, free: 4.527 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.2876, allocations: 126.5 kB / 401.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.2879, allocations: 8.484 kB / 401.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.2894, allocations: 1.703 MB / 403.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.548e-05/0.2894, allocations: 67.62 kB / 403.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.602e-05/0.2894, allocations: 2.156 kB / 403.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.578e-05/0.2895, allocations: 14.48 kB / 403.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2895, allocations: 0 / 403.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.3198, allocations: 2.455 MB / 406.1 MB, free: 1.645 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.73, allocations: 6.344 kB / 406.2 MB, free: 1.641 MB / 318.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.130695041269064]