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.001693/0.001693, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002201/0.002201, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.406/1.406, allocations: 230.6 MB / 257.5 MB, free: 8 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.001571/0.001571, allocations: 47.92 kB / 377.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2479, allocations: 53.37 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001527/0.2494, allocations: 490.5 kB / 431.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002541/0.2497, allocations: 67.72 kB / 431.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.265e-05/0.2497, allocations: 0 / 431.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.809e-05/0.2497, allocations: 3.938 kB / 431.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.158e-05/0.2498, allocations: 11.98 kB / 431.7 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001513/0.2499, allocations: 23.91 kB / 431.7 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.222e-05/0.25, allocations: 19.98 kB / 431.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.384e-05/0.25, allocations: 0 / 431.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.117e-05/0.2501, allocations: 11.98 kB / 431.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.555e-05/0.2502, allocations: 35.91 kB / 431.8 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.2502, allocations: 0 / 431.8 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.363e-05/0.2502, allocations: 11.98 kB / 431.8 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.812e-05/0.2503, allocations: 3.125 kB / 431.8 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.894e-05/0.2503, allocations: 7.938 kB / 431.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.2504, allocations: 29.59 kB / 431.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2504, allocations: 0 / 431.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2504, allocations: 0 / 431.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.2504, allocations: 4 kB / 431.8 MB, free: 6.168 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.000345/0.2507, allocations: 287.9 kB / 432.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2508, allocations: 12.03 kB / 432.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.056e-05/0.2508, allocations: 42.69 kB / 432.1 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.567e-05/0.2509, allocations: 4.875 kB / 432.2 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.251, allocations: 118.4 kB / 432.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.251, allocations: 4.375 kB / 432.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.251, allocations: 384 / 432.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.2511, allocations: 70.23 kB / 432.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.2511, allocations: 3.938 kB / 432.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-06/0.2511, allocations: 0 / 432.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.2512, allocations: 0 / 432.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.745e-05/0.2512, allocations: 35.98 kB / 432.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002602/0.2515, allocations: 227.9 kB / 432.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.2516, allocations: 66.48 kB / 432.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.14e-05/0.2516, allocations: 44.91 kB / 432.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.084e-06/0.2516, allocations: 0 / 432.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.559e-05/0.2517, allocations: 64.25 kB / 432.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.2517, allocations: 4 kB / 432.8 MB, free: 5.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003573/0.252, allocations: 219.2 kB / 433 MB, free: 4.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.136e-05/0.2521, allocations: 77.11 kB / 433.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.57e-05/0.2522, allocations: 117.8 kB / 433.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.2522, allocations: 25.7 kB / 433.2 MB, free: 4.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.986e-05/0.2523, allocations: 80.14 kB / 433.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.2523, allocations: 23.83 kB / 433.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.2523, allocations: 21.72 kB / 433.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2525, allocations: 326.8 kB / 433.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.658e-05/0.2525, allocations: 27.98 kB / 433.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.934e-05/0.2526, allocations: 31.98 kB / 433.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001295/0.2527, allocations: 128.8 kB / 433.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2527, allocations: 0 / 433.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002024/0.2529, allocations: 187.2 kB / 434 MB, free: 3.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.2529, allocations: 29.7 kB / 434 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2529, allocations: 8 kB / 434.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.253, allocations: 3.984 kB / 434.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.736e-05/0.253, allocations: 4 kB / 434.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.253, allocations: 0 / 434.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.154e-05/0.253, allocations: 4 kB / 434.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-06/0.253, allocations: 4 kB / 434.1 MB, free: 3.664 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.0001228/0.2531, allocations: 155.4 kB / 434.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.2532, allocations: 3.953 kB / 434.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.241e-05/0.2532, allocations: 12.38 kB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.2532, allocations: 0 / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.2532, allocations: 0 / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2532, allocations: 0 / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004195/0.2536, allocations: 419.2 kB / 434.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2536, allocations: 0 / 434.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.67e-06/0.2536, allocations: 0 / 434.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2536, allocations: 0 / 434.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.2536, allocations: 8 kB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2536, allocations: 0 / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2536, allocations: 0 / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002773/0.2539, allocations: 301 kB / 434.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.195e-06/0.2539, allocations: 3.953 kB / 435 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.2539, allocations: 4 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.387e-05/0.254, allocations: 4 kB / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.96e-05/0.254, allocations: 7.984 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.254, allocations: 0 / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.402e-05/0.2541, allocations: 95.27 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2541, allocations: 0 / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002231/0.2543, allocations: 15.94 kB / 435.1 MB, free: 2.559 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.0008973/0.2552, allocations: 0.9152 MB / 436 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000198/0.2554, allocations: 139.4 kB / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2554, allocations: 0 / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.997e-05/0.2555, allocations: 103.3 kB / 436.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.2557, allocations: 4 kB / 436.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.2571, allocations: 1.549 MB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.2574, allocations: 0.6846 MB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.295e-05/0.2575, allocations: 4 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.75e-05/0.2575, allocations: 11.44 kB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2575, allocations: 0 / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.2856, allocations: 2.051 MB / 440.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.91, allocations: 15.94 kB / 440.5 MB, free: 13.04 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.309772200882435]