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.001083/0.001083, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 59.91 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2523, allocations: 50.53 MB / 408.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001698/0.254, allocations: 491.7 kB / 409.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002473/0.2543, allocations: 59.8 kB / 409.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.986e-05/0.2544, allocations: 0 / 409.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.092e-05/0.2544, allocations: 7.938 kB / 409.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.2e-05/0.2545, allocations: 11.98 kB / 409.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001634/0.2547, allocations: 19.97 kB / 409.3 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.433e-05/0.2548, allocations: 15.98 kB / 409.3 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.47e-05/0.2548, allocations: 7.938 kB / 409.3 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.03e-05/0.2549, allocations: 15.98 kB / 409.3 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.545e-05/0.2549, allocations: 23.91 kB / 409.4 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.255, allocations: 0 / 409.4 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.449e-05/0.255, allocations: 15.98 kB / 409.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.844e-05/0.255, allocations: 0 / 409.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.656e-05/0.2551, allocations: 11.94 kB / 409.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.977e-05/0.2552, allocations: 27.91 kB / 409.4 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.2552, allocations: 0 / 409.4 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.2552, allocations: 4 kB / 409.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.2552, allocations: 0 / 409.4 MB, free: 0.8867 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.0003791/0.2556, allocations: 362.9 kB / 409.8 MB, free: 488 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.2557, allocations: 8.031 kB / 409.8 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.008e-05/0.2557, allocations: 50.64 kB / 409.8 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.2558, allocations: 0.9375 kB / 409.8 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.2559, allocations: 172.2 kB / 410 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.2559, allocations: 384 / 410 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.2559, allocations: 4.375 kB / 410 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.256, allocations: 74.16 kB / 410.1 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.2561, allocations: 3.938 kB / 410.1 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.2561, allocations: 7.938 kB / 410.1 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.2561, allocations: 0 / 410.1 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.064e-05/0.2562, allocations: 35.92 kB / 410.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000255/0.2564, allocations: 252.9 kB / 410.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.558e-05/0.2565, allocations: 74.42 kB / 410.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.189e-05/0.2566, allocations: 52.91 kB / 410.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.2566, allocations: 0 / 410.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/0.2567, allocations: 60.25 kB / 410.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.32e-07/0.2567, allocations: 0 / 410.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003106/0.257, allocations: 215.2 kB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.257, allocations: 77.11 kB / 410.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.926e-05/0.2571, allocations: 109.8 kB / 410.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.2571, allocations: 33.7 kB / 411 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.118e-05/0.2572, allocations: 80.14 kB / 411.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.2572, allocations: 27.64 kB / 411.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.2573, allocations: 21.72 kB / 411.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.2574, allocations: 314.8 kB / 411.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.886e-05/0.2574, allocations: 35.98 kB / 411.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.502e-05/0.2575, allocations: 35.98 kB / 411.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.2576, allocations: 128.4 kB / 411.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2576, allocations: 0 / 411.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001822/0.2578, allocations: 179.2 kB / 411.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.553e-05/0.2578, allocations: 33.7 kB / 411.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.2578, allocations: 7.969 kB / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.2579, allocations: 0 / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.074e-05/0.2579, allocations: 4.438 kB / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.2579, allocations: 0 / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.456e-05/0.2579, allocations: 7.906 kB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.2579, allocations: 8 kB / 411.8 MB, free: 14.17 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.000115/0.2581, allocations: 155.4 kB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.987e-05/0.2581, allocations: 4 kB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.609e-05/0.2581, allocations: 12.38 kB / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2581, allocations: 0 / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2581, allocations: 0 / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2582, allocations: 0 / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000412/0.2586, allocations: 436.1 kB / 412.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.2586, allocations: 4 kB / 412.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.568e-06/0.2586, allocations: 4 kB / 412.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2586, allocations: 0 / 412.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.2586, allocations: 0 / 412.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2586, allocations: 0 / 412.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2586, allocations: 4 kB / 412.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000276/0.2589, allocations: 293.3 kB / 412.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.259, allocations: 84.95 kB / 412.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.259, allocations: 15.92 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.287e-05/0.259, allocations: 0 / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.418e-05/0.2591, allocations: 4 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.2591, allocations: 4 kB / 412.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.207e-05/0.2592, allocations: 91.27 kB / 412.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2592, allocations: 0 / 412.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.2594, allocations: 12 kB / 412.9 MB, free: 12.95 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.0008388/0.2602, allocations: 0.8996 MB / 413.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002074/0.2605, allocations: 151.4 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2605, allocations: 0 / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.237e-05/0.2606, allocations: 99.39 kB / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.2608, allocations: 15.31 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.2622, allocations: 1.555 MB / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.2625, allocations: 0.6884 MB / 416.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.277e-05/0.2625, allocations: 4 kB / 416.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.756e-05/0.2626, allocations: 15.38 kB / 416.4 MB, free: 9.383 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2626, allocations: 0 / 416.4 MB, free: 9.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.2811, allocations: 1.922 MB / 418.3 MB, free: 7.555 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/7.544, allocations: 12.47 kB / 418.3 MB, free: 7.543 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.0.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