Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001349/0.001354, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001295, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 63.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3361, allocations: 50.55 MB / 408.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001717/0.3379, allocations: 480.1 kB / 409.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002667/0.3382, allocations: 67.78 kB / 409.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.156e-05/0.3382, allocations: 0 / 409.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.173e-05/0.3382, allocations: 0 / 409.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.552e-05/0.3383, allocations: 11.98 kB / 409.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.3386, allocations: 23.91 kB / 409.4 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.3387, allocations: 19.98 kB / 409.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.69e-05/0.3388, allocations: 7.984 kB / 409.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.554e-05/0.3388, allocations: 11.98 kB / 409.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.736e-05/0.3389, allocations: 19.92 kB / 409.4 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.339, allocations: 0 / 409.4 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.73e-05/0.339, allocations: 12 kB / 409.4 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.75e-05/0.3391, allocations: 3.984 kB / 409.4 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.522e-05/0.3391, allocations: 11.94 kB / 409.5 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.3392, allocations: 23.44 kB / 409.5 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.3392, allocations: 3.984 kB / 409.5 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3392, allocations: 0 / 409.5 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.3393, allocations: 4 kB / 409.5 MB, free: 0.7812 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.0004909/0.3398, allocations: 368 kB / 409.8 MB, free: 376 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3398, allocations: 8.031 kB / 409.9 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.596e-05/0.3399, allocations: 46.64 kB / 409.9 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.36e-05/0.3399, allocations: 12.89 kB / 409.9 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.3401, allocations: 168.4 kB / 410.1 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.3401, allocations: 384 / 410.1 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.3401, allocations: 12.3 kB / 410.1 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001481/0.3403, allocations: 66.23 kB / 410.2 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3403, allocations: 7.875 kB / 410.2 MB, free: 0 / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.3403, allocations: 8.047 kB / 410.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.3403, allocations: 0 / 410.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.512e-05/0.3404, allocations: 31.88 kB / 410.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003586/0.3408, allocations: 256.8 kB / 410.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.3409, allocations: 66.5 kB / 410.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.631e-05/0.341, allocations: 56.89 kB / 410.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.341, allocations: 0 / 410.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/0.341, allocations: 60.2 kB / 410.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.341, allocations: 0 / 410.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000373/0.3414, allocations: 211.5 kB / 410.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.551e-05/0.3415, allocations: 89.09 kB / 410.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.465e-05/0.3416, allocations: 109.8 kB / 411 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.3416, allocations: 29.7 kB / 411.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.902e-05/0.3417, allocations: 80.14 kB / 411.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.3417, allocations: 19.86 kB / 411.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.3418, allocations: 25.7 kB / 411.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3419, allocations: 314.8 kB / 411.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.924e-05/0.342, allocations: 31.98 kB / 411.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.594e-05/0.3421, allocations: 35.98 kB / 411.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.3422, allocations: 132.2 kB / 411.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3422, allocations: 0 / 411.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002038/0.3424, allocations: 175.2 kB / 411.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.3425, allocations: 37.69 kB / 411.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-06/0.3425, allocations: 0 / 411.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.3425, allocations: 0 / 411.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.966e-05/0.3425, allocations: 4 kB / 411.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3425, allocations: 0 / 411.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.434e-05/0.3426, allocations: 11.94 kB / 411.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.3426, allocations: 4 kB / 411.9 MB, free: 14.07 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.0001286/0.3427, allocations: 151.4 kB / 412.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.073e-05/0.3427, allocations: 7.953 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.539e-05/0.3428, allocations: 8.375 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3428, allocations: 8.422 kB / 412.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3428, allocations: 0 / 412.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3428, allocations: 0 / 412.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005342/0.3433, allocations: 432.2 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3433, allocations: 4 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.156e-05/0.3434, allocations: 11.92 kB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3434, allocations: 0 / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.3434, allocations: 7.938 kB / 412.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3434, allocations: 0 / 412.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3434, allocations: 4 kB / 412.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.3437, allocations: 289.1 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.243e-05/0.3437, allocations: 77.11 kB / 412.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.3438, allocations: 8 kB / 412.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.031e-05/0.3438, allocations: 0 / 412.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.801e-05/0.3438, allocations: 8 kB / 412.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.3439, allocations: 7.984 kB / 412.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.984e-05/0.3439, allocations: 83.28 kB / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3439, allocations: 0 / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.3441, allocations: 19.94 kB / 413 MB, free: 12.84 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.0009111/0.3451, allocations: 0.8955 MB / 413.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002094/0.3453, allocations: 147.4 kB / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.3453, allocations: 0 / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.116e-05/0.3454, allocations: 111.2 kB / 414.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.3456, allocations: 12 kB / 414.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/0.3473, allocations: 1.562 MB / 415.7 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.3477, allocations: 0.6807 MB / 416.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.533e-05/0.3477, allocations: 4 kB / 416.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.162e-05/0.3477, allocations: 15.42 kB / 416.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of SimCode: time 1.764e-06/0.3477, allocations: 0 / 416.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02417/0.3719, allocations: 1.899 MB / 418.3 MB, free: 7.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/8.309, allocations: 17.16 kB / 418.4 MB, free: 7.453 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches