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.001466/0.001466, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001384/0.001384, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.493/1.493, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001552/0.001552, allocations: 43.94 kB / 372.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.119, allocations: 53.33 MB / 426.3 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001627/0.1206, allocations: 487.6 kB / 426.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002599/0.1208, allocations: 71.72 kB / 426.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.862e-05/0.1209, allocations: 0 / 426.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.313e-05/0.1209, allocations: 3.938 kB / 426.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.483e-05/0.121, allocations: 15.98 kB / 426.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001523/0.1211, allocations: 27.91 kB / 426.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.96e-05/0.1212, allocations: 19.92 kB / 426.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.065e-05/0.1212, allocations: 4 kB / 426.9 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.245e-05/0.1213, allocations: 11.97 kB / 426.9 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.213e-05/0.1213, allocations: 27.97 kB / 426.9 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.998e-05/0.1214, allocations: 4 kB / 426.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.247e-05/0.1214, allocations: 7.938 kB / 426.9 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.042e-05/0.1215, allocations: 4 kB / 426.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.718e-05/0.1215, allocations: 7.938 kB / 427 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.834e-05/0.1216, allocations: 23.91 kB / 427 MB, free: 4.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.1216, allocations: 8 kB / 427 MB, free: 4.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1216, allocations: 0 / 427 MB, free: 4.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.1216, allocations: 0 / 427 MB, free: 4.207 MB / 350.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.0003962/0.122, allocations: 365 kB / 427.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.122, allocations: 12.02 kB / 427.4 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.255e-05/0.1221, allocations: 38.7 kB / 427.4 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.651e-05/0.1221, allocations: 4.891 kB / 427.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.1223, allocations: 172.3 kB / 427.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.1223, allocations: 384 / 427.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1223, allocations: 12.36 kB / 427.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.1224, allocations: 62.25 kB / 427.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1224, allocations: 7.922 kB / 427.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.1224, allocations: 7.984 kB / 427.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1224, allocations: 0 / 427.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.614e-05/0.1225, allocations: 31.98 kB / 427.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000282/0.1228, allocations: 256.8 kB / 427.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.684e-05/0.1229, allocations: 62.5 kB / 428 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.742e-05/0.1229, allocations: 52.88 kB / 428 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.1229, allocations: 0 / 428 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.798e-05/0.123, allocations: 64.27 kB / 428.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.123, allocations: 0 / 428.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.000351/0.1234, allocations: 215.2 kB / 428.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.1234, allocations: 77.11 kB / 428.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1235, allocations: 117.9 kB / 428.5 MB, free: 2.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.1235, allocations: 29.7 kB / 428.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.1236, allocations: 88.12 kB / 428.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.1236, allocations: 20.02 kB / 428.6 MB, free: 2.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.1237, allocations: 25.66 kB / 428.7 MB, free: 2.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1238, allocations: 314.8 kB / 429 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.462e-05/0.1238, allocations: 31.98 kB / 429 MB, free: 1.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.178e-05/0.1239, allocations: 39.97 kB / 429 MB, free: 1.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.124, allocations: 128.2 kB / 429.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.124, allocations: 4 kB / 429.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002067/0.1242, allocations: 175.2 kB / 429.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/0.1243, allocations: 37.69 kB / 429.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1243, allocations: 0 / 429.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1243, allocations: 0 / 429.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.628e-05/0.1243, allocations: 0 / 429.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.1243, allocations: 4 kB / 429.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.245e-05/0.1243, allocations: 3.938 kB / 429.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.1243, allocations: 4 kB / 429.4 MB, free: 1.508 MB / 350.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.0001187/0.1245, allocations: 155.4 kB / 429.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.065e-05/0.1245, allocations: 11.95 kB / 429.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.877e-05/0.1245, allocations: 8.375 kB / 429.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1245, allocations: 4 kB / 429.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.1245, allocations: 0 / 429.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.1245, allocations: 0 / 429.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004324/0.125, allocations: 436.1 kB / 430 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.125, allocations: 0 / 430 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.601e-05/0.125, allocations: 4 kB / 430 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.125, allocations: 0 / 430 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.125, allocations: 0 / 430 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.125, allocations: 8 kB / 430 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.125, allocations: 3.984 kB / 430 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.1253, allocations: 289 kB / 430.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.1253, allocations: 85.09 kB / 430.4 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.1253, allocations: 0.5 kB / 430.4 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.687e-05/0.1254, allocations: 4 kB / 430.4 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.1254, allocations: 4 kB / 430.4 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.1254, allocations: 8 kB / 430.4 MB, free: 400 kB / 350.1 MB Notification: Performance of sorting global known variables: time 6.078e-05/0.1255, allocations: 91.27 kB / 430.5 MB, free: 308 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1255, allocations: 0 / 430.5 MB, free: 308 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002317/0.1257, allocations: 19.94 kB / 430.5 MB, free: 288 kB / 350.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.0009832/0.1267, allocations: 0.9147 MB / 431.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002024/0.1269, allocations: 135.4 kB / 431.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1269, allocations: 0 / 431.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.028e-05/0.127, allocations: 95.33 kB / 431.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.1272, allocations: 7.984 kB / 431.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.1287, allocations: 1.558 MB / 433.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.1291, allocations: 0.6846 MB / 433.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.294e-05/0.1291, allocations: 0 / 433.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.204e-05/0.1291, allocations: 19.44 kB / 433.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1291, allocations: 0 / 433.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02537/0.1545, allocations: 1.923 MB / 435.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.883/8.037, allocations: 0 / 435.8 MB, free: 10.9 MB / 366.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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.csv","/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: 10.783070674995543]