Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 193.5 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 51.92 kB / 371.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2345, allocations: 52.18 MB / 423.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001869/0.2363, allocations: 0.4921 MB / 423.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003023/0.2366, allocations: 59.81 kB / 423.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.531e-05/0.2367, allocations: 4 kB / 423.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.093e-05/0.2367, allocations: 3.938 kB / 423.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.106e-05/0.2368, allocations: 15.97 kB / 423.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.237, allocations: 15.98 kB / 423.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.2371, allocations: 23.92 kB / 423.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.786e-05/0.2371, allocations: 3.984 kB / 423.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.048e-05/0.2371, allocations: 8 kB / 423.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.68e-05/0.2372, allocations: 31.89 kB / 424 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.2372, allocations: 0 / 424 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.24e-05/0.2373, allocations: 8 kB / 424 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.628e-05/0.2373, allocations: 11.98 kB / 424 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.561e-05/0.2374, allocations: 7.938 kB / 424 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.2375, allocations: 26.02 kB / 424 MB, free: 13.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.2375, allocations: 0 / 424 MB, free: 13.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2375, allocations: 0 / 424 MB, free: 13.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2375, allocations: 0 / 424 MB, free: 13.73 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.0003827/0.2379, allocations: 291.9 kB / 424.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2379, allocations: 12.03 kB / 424.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.483e-05/0.2379, allocations: 192 / 424.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.091e-05/0.238, allocations: 42.73 kB / 424.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.238, allocations: 4.891 kB / 424.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.2381, allocations: 118.4 kB / 424.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.2381, allocations: 4.375 kB / 424.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.2382, allocations: 384 / 424.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.2383, allocations: 103.7 kB / 424.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.2383, allocations: 0 / 424.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.2383, allocations: 3.984 kB / 424.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.2384, allocations: 4 kB / 424.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.592e-05/0.2384, allocations: 57.69 kB / 424.7 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002658/0.2387, allocations: 227.9 kB / 424.9 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001107/0.2388, allocations: 92.19 kB / 425 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.552e-05/0.2389, allocations: 74.61 kB / 425 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.2389, allocations: 4 kB / 425.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.2389, allocations: 64.25 kB / 425.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.2389, allocations: 0 / 425.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000364/0.2393, allocations: 274.6 kB / 425.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.2393, allocations: 88.97 kB / 425.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.744e-05/0.2394, allocations: 109.8 kB / 425.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2394, allocations: 29.7 kB / 425.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.2395, allocations: 84.14 kB / 425.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.2395, allocations: 11.91 kB / 425.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/0.2395, allocations: 29.7 kB / 425.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.2397, allocations: 318.8 kB / 426 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.582e-05/0.2397, allocations: 57.69 kB / 426.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.504e-05/0.2398, allocations: 65.83 kB / 426.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.2399, allocations: 136.2 kB / 426.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2399, allocations: 3.938 kB / 426.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002007/0.2401, allocations: 201 kB / 426.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.736e-05/0.2401, allocations: 37.69 kB / 426.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2401, allocations: 448 / 426.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.2402, allocations: 0 / 426.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-05/0.2402, allocations: 0 / 426.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.83e-06/0.2402, allocations: 0 / 426.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.338e-05/0.2402, allocations: 12 kB / 426.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.2402, allocations: 4 kB / 426.5 MB, free: 10.91 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.0001158/0.2403, allocations: 151.5 kB / 426.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.2404, allocations: 11.89 kB / 426.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.023e-05/0.2404, allocations: 8.375 kB / 426.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.2404, allocations: 0 / 426.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2404, allocations: 4 kB / 426.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.2404, allocations: 0 / 426.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004135/0.2408, allocations: 453.2 kB / 427.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2408, allocations: 0 / 427.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-06/0.2408, allocations: 0 / 427.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2408, allocations: 4 kB / 427.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.2408, allocations: 4 kB / 427.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2408, allocations: 0 / 427.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2408, allocations: 0 / 427.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.2411, allocations: 326.7 kB / 427.5 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.305e-06/0.2411, allocations: 3.984 kB / 427.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.2411, allocations: 4 kB / 427.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.458e-05/0.2412, allocations: 4 kB / 427.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.191e-05/0.2412, allocations: 4 kB / 427.5 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.2412, allocations: 0 / 427.5 MB, free: 9.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.978e-05/0.2413, allocations: 99.27 kB / 427.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2413, allocations: 0 / 427.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000235/0.2415, allocations: 15.94 kB / 427.6 MB, free: 9.727 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.0009394/0.2424, allocations: 0.9745 MB / 428.6 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002374/0.2427, allocations: 194.8 kB / 428.8 MB, free: 8.512 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2427, allocations: 0 / 428.8 MB, free: 8.512 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.2428, allocations: 133.1 kB / 428.9 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.243, allocations: 7.938 kB / 428.9 MB, free: 8.355 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.2445, allocations: 1.698 MB / 430.6 MB, free: 6.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.302e-05/0.2446, allocations: 75.19 kB / 430.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.067e-05/0.2446, allocations: 0 / 430.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.964e-05/0.2446, allocations: 11.44 kB / 430.7 MB, free: 6.438 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2446, allocations: 0 / 430.7 MB, free: 6.438 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.2661, allocations: 2.123 MB / 432.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.55, allocations: 13.95 kB / 432.8 MB, free: 4.398 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 12.944460295024328]