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.001902/0.001902, allocations: 107.6 kB / 21.18 MB, free: 452 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.002559/0.002559, allocations: 209.3 kB / 24.47 MB, free: 3.773 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.529/1.529, 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.001909/0.001909, allocations: 59.91 kB / 347.2 MB, free: 9.914 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2709, allocations: 49.16 MB / 396.3 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001457/0.2723, allocations: 494.5 kB / 396.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002342/0.2726, allocations: 65.03 kB / 396.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.401e-05/0.2726, allocations: 0 / 396.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.987e-05/0.2726, allocations: 0 / 396.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.653e-05/0.2727, allocations: 18.2 kB / 396.9 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001445/0.2729, allocations: 20.81 kB / 396.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.887e-05/0.2729, allocations: 17.38 kB / 396.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.742e-05/0.273, allocations: 6.75 kB / 396.9 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.883e-05/0.273, allocations: 18.47 kB / 396.9 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.152e-05/0.2731, allocations: 29.81 kB / 397 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.2731, allocations: 0 / 397 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.999e-05/0.2731, allocations: 10.12 kB / 397 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.046e-05/0.2732, allocations: 5 kB / 397 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.6e-05/0.2732, allocations: 7.219 kB / 397 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.2733, allocations: 33.19 kB / 397 MB, free: 8.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2733, allocations: 0 / 397 MB, free: 8.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2733, allocations: 0 / 397 MB, free: 8.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.2733, allocations: 0 / 397 MB, free: 8.5 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.0002464/0.2736, allocations: 289 kB / 397.3 MB, free: 8.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.2736, allocations: 13.02 kB / 397.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.786e-05/0.2736, allocations: 38.61 kB / 397.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.721e-05/0.2737, allocations: 8.688 kB / 397.4 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.976e-05/0.2737, allocations: 111.6 kB / 397.5 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.2737, allocations: 9.781 kB / 397.5 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.2737, allocations: 3.406 kB / 397.5 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001391/0.2739, allocations: 98.38 kB / 397.6 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.2739, allocations: 8.453 kB / 397.6 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.2739, allocations: 1.062 kB / 397.6 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2739, allocations: 1.375 kB / 397.6 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.712e-05/0.274, allocations: 61.62 kB / 397.7 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002093/0.2742, allocations: 222 kB / 397.9 MB, free: 7.656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.2743, allocations: 97.48 kB / 398 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.968e-05/0.2744, allocations: 78.23 kB / 398 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.2744, allocations: 1.281 kB / 398 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.2744, allocations: 63.3 kB / 398.1 MB, free: 7.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.193e-06/0.2744, allocations: 1.219 kB / 398.1 MB, free: 7.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003237/0.2747, allocations: 267 kB / 398.4 MB, free: 7.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.2748, allocations: 84.66 kB / 398.5 MB, free: 7.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.954e-05/0.2748, allocations: 115 kB / 398.6 MB, free: 7.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.735e-06/0.2748, allocations: 25.7 kB / 398.6 MB, free: 7.086 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.956e-05/0.2749, allocations: 83.34 kB / 398.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.2749, allocations: 19.48 kB / 398.7 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.526e-05/0.2749, allocations: 25.44 kB / 398.7 MB, free: 6.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.229e-05/0.2749, allocations: 322.4 kB / 399 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.117e-05/0.275, allocations: 64.41 kB / 399.1 MB, free: 6.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.356e-05/0.275, allocations: 61.53 kB / 399.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.581e-05/0.2751, allocations: 133 kB / 399.3 MB, free: 6.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2751, allocations: 0 / 399.3 MB, free: 6.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001673/0.2753, allocations: 206.2 kB / 399.5 MB, free: 6.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.2753, allocations: 35.92 kB / 399.5 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2753, allocations: 3.984 kB / 399.5 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.2754, allocations: 1.219 kB / 399.5 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.54e-05/0.2754, allocations: 0 / 399.5 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.2754, allocations: 6.875 kB / 399.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.052e-05/0.2754, allocations: 9.344 kB / 399.5 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.2754, allocations: 4.031 kB / 399.5 MB, free: 6.328 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 5.902e-05/0.2755, allocations: 147.5 kB / 399.7 MB, free: 6.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/0.2755, allocations: 7.453 kB / 399.7 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.664e-05/0.2755, allocations: 11.39 kB / 399.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2755, allocations: 0 / 399.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2755, allocations: 1.438 kB / 399.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2755, allocations: 4.734 kB / 399.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.2758, allocations: 443.5 kB / 400.1 MB, free: 5.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2758, allocations: 4 kB / 400.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.543e-06/0.2758, allocations: 2.156 kB / 400.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2758, allocations: 1.281 kB / 400.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.2758, allocations: 3 kB / 400.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2758, allocations: 4 kB / 400.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2758, allocations: 1.094 kB / 400.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001963/0.276, allocations: 325.5 kB / 400.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-06/0.276, allocations: 10.38 kB / 400.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.2761, allocations: 2.781 kB / 400.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.43e-05/0.2761, allocations: 2.156 kB / 400.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.468e-05/0.2761, allocations: 2.422 kB / 400.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.2761, allocations: 8.734 kB / 400.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.952e-05/0.2762, allocations: 90.67 kB / 400.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2762, allocations: 0 / 400.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002264/0.2764, allocations: 11.42 kB / 400.6 MB, free: 5.484 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.0006223/0.277, allocations: 0.9711 MB / 401.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001787/0.2772, allocations: 197.9 kB / 401.8 MB, free: 4.523 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2772, allocations: 4 kB / 401.8 MB, free: 4.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.144e-05/0.2773, allocations: 124.1 kB / 401.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002056/0.2775, allocations: 3.688 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.001046/0.2785, 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 4.55e-05/0.2786, allocations: 67.73 kB / 403.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.168e-05/0.2786, allocations: 1.125 kB / 403.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.411e-05/0.2786, allocations: 18.8 kB / 403.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2786, allocations: 3.938 kB / 403.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.3053, allocations: 2.459 MB / 406.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.51, allocations: 5.312 kB / 406.2 MB, free: 1.629 MB / 318.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.9992e-05 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.csv","/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: 14.191782731097192]