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.001295/0.001295, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001861/0.001861, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.524/1.524, allocations: 207.6 MB / 235.3 MB, free: 10.01 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.001805/0.001805, allocations: 50.58 kB / 347.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2674, allocations: 49.16 MB / 396.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001601/0.269, allocations: 493.8 kB / 396.8 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002667/0.2693, allocations: 59.25 kB / 396.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.127e-05/0.2693, allocations: 3.938 kB / 396.9 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.424e-05/0.2693, allocations: 5.875 kB / 396.9 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.308e-05/0.2694, allocations: 12.52 kB / 396.9 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.2696, allocations: 22.17 kB / 396.9 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.2697, allocations: 20.55 kB / 396.9 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.798e-05/0.2697, allocations: 6.688 kB / 396.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.181e-05/0.2698, allocations: 16.72 kB / 396.9 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.058e-05/0.2698, allocations: 23.59 kB / 397 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.2699, allocations: 0 / 397 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.46e-05/0.2699, allocations: 6.078 kB / 397 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.943e-05/0.27, allocations: 16.34 kB / 397 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.563e-05/0.27, allocations: 15.86 kB / 397 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.2701, allocations: 24.72 kB / 397 MB, free: 8.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2701, allocations: 0 / 397 MB, free: 8.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2701, allocations: 0 / 397 MB, free: 8.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.2701, allocations: 1.156 kB / 397 MB, free: 8.609 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.0003334/0.2705, allocations: 285.6 kB / 397.3 MB, free: 8.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.2705, allocations: 13.95 kB / 397.3 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.598e-05/0.2706, allocations: 43.44 kB / 397.4 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.15e-05/0.2706, allocations: 7.141 kB / 397.4 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.643e-05/0.2707, allocations: 118.7 kB / 397.5 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.2707, allocations: 2.656 kB / 397.5 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.2707, allocations: 6.594 kB / 397.5 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.2708, allocations: 68.12 kB / 397.6 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2708, allocations: 3.938 kB / 397.6 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.2709, allocations: 1.062 kB / 397.6 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2709, allocations: 1.406 kB / 397.6 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.016e-05/0.2709, allocations: 29.17 kB / 397.6 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002004/0.2711, allocations: 227.3 kB / 397.8 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.2712, allocations: 69.97 kB / 397.9 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.689e-05/0.2713, allocations: 46.73 kB / 397.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.145e-05/0.2713, allocations: 0 / 397.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.2713, allocations: 59.47 kB / 398 MB, free: 7.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.2713, allocations: 0 / 398 MB, free: 7.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003653/0.2717, allocations: 214.8 kB / 398.2 MB, free: 7.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.2717, allocations: 79.97 kB / 398.3 MB, free: 7.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.332e-05/0.2718, allocations: 115.6 kB / 398.4 MB, free: 7.426 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.08e-05/0.2718, allocations: 26.8 kB / 398.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.644e-05/0.2718, allocations: 87.33 kB / 398.5 MB, free: 7.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.2719, allocations: 19.56 kB / 398.5 MB, free: 7.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.2719, allocations: 23.95 kB / 398.6 MB, free: 7.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.239e-05/0.272, allocations: 314 kB / 398.9 MB, free: 6.961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.968e-05/0.272, allocations: 37.5 kB / 398.9 MB, free: 6.953 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.252e-05/0.2721, allocations: 29.28 kB / 398.9 MB, free: 6.953 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001212/0.2722, allocations: 136.6 kB / 399.1 MB, free: 6.867 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2722, allocations: 0 / 399.1 MB, free: 6.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001884/0.2724, allocations: 178.4 kB / 399.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.2724, allocations: 33.45 kB / 399.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2724, allocations: 2.359 kB / 399.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.2724, allocations: 0 / 399.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.963e-05/0.2724, allocations: 1.031 kB / 399.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.2724, allocations: 1.469 kB / 399.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.502e-05/0.2725, allocations: 10.16 kB / 399.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.2725, allocations: 3.469 kB / 399.3 MB, free: 6.742 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 8.025e-05/0.2726, allocations: 155.5 kB / 399.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.93e-05/0.2726, allocations: 8.516 kB / 399.4 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.2726, allocations: 14.8 kB / 399.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2726, allocations: 1.156 kB / 399.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2726, allocations: 0 / 399.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2726, allocations: 1.688 kB / 399.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.273, allocations: 416.1 kB / 399.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.273, allocations: 0 / 399.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-06/0.273, allocations: 9.859 kB / 399.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.273, allocations: 1.031 kB / 399.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.273, allocations: 2.656 kB / 399.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.273, allocations: 1.984 kB / 399.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.273, allocations: 0 / 399.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.2732, allocations: 294.3 kB / 400.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.043e-05/0.2732, allocations: 7.453 kB / 400.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.2733, allocations: 7.391 kB / 400.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.471e-05/0.2733, allocations: 5.531 kB / 400.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.274e-05/0.2733, allocations: 2.703 kB / 400.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.2733, allocations: 7.781 kB / 400.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.454e-05/0.2734, allocations: 86.91 kB / 400.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2734, allocations: 0 / 400.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002496/0.2736, allocations: 16 kB / 400.3 MB, free: 5.949 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.0007161/0.2743, allocations: 0.9097 MB / 401.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002057/0.2745, allocations: 133 kB / 401.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2745, allocations: 0 / 401.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.89e-05/0.2746, allocations: 99.28 kB / 401.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.2748, allocations: 3.375 kB / 401.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.276, allocations: 1.564 MB / 403 MB, free: 3.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.2761, allocations: 0.6879 MB / 403.7 MB, free: 3.082 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.427e-05/0.2761, allocations: 2.016 kB / 403.7 MB, free: 3.082 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.269e-05/0.2762, allocations: 15.09 kB / 403.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2762, allocations: 0 / 403.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02899/0.3052, allocations: 2.056 MB / 405.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.12, allocations: 3.188 kB / 405.8 MB, free: 2.285 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 & 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: 13.70215863899648]