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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001352/0.001352, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 214.3 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 63.91 kB / 377.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2774, allocations: 53.41 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001701/0.2791, allocations: 484.6 kB / 431.6 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002935/0.2794, allocations: 62.97 kB / 431.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.024e-05/0.2794, allocations: 0 / 431.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.481e-05/0.2794, allocations: 0 / 431.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.14e-05/0.2795, allocations: 19.97 kB / 431.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001727/0.2797, allocations: 23.86 kB / 431.7 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.066e-05/0.2798, allocations: 23.97 kB / 431.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.674e-05/0.2798, allocations: 3.984 kB / 431.7 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.595e-05/0.2799, allocations: 11.94 kB / 431.7 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.039e-05/0.28, allocations: 31.95 kB / 431.8 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.28, allocations: 0 / 431.8 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.19e-05/0.28, allocations: 4 kB / 431.8 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.323e-05/0.2801, allocations: 7.984 kB / 431.8 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.219e-05/0.2801, allocations: 7.938 kB / 431.8 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.2802, allocations: 33.59 kB / 431.8 MB, free: 5.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2802, allocations: 0 / 431.8 MB, free: 5.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2802, allocations: 0 / 431.8 MB, free: 5.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2802, allocations: 0 / 431.8 MB, free: 5.773 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.0004044/0.2806, allocations: 287.9 kB / 432.1 MB, free: 5.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.2807, allocations: 15.98 kB / 432.1 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.254e-05/0.2807, allocations: 38.69 kB / 432.1 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.196e-05/0.2808, allocations: 8.875 kB / 432.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.2809, allocations: 110.5 kB / 432.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.2809, allocations: 8.375 kB / 432.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.2809, allocations: 4.375 kB / 432.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.2811, allocations: 99.94 kB / 432.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.2811, allocations: 3.938 kB / 432.4 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.2811, allocations: 0 / 432.4 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.2811, allocations: 3.938 kB / 432.4 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.574e-05/0.2812, allocations: 61.69 kB / 432.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002813/0.2815, allocations: 223.9 kB / 432.7 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.2816, allocations: 96.19 kB / 432.8 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.292e-05/0.2817, allocations: 74.59 kB / 432.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.2817, allocations: 0 / 432.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.2818, allocations: 68.25 kB / 432.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.2818, allocations: 7.938 kB / 432.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003961/0.2821, allocations: 266.8 kB / 433.2 MB, free: 4.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.2822, allocations: 85.09 kB / 433.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.506e-05/0.2823, allocations: 109.8 kB / 433.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.2823, allocations: 29.7 kB / 433.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.2824, allocations: 84.14 kB / 433.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.2824, allocations: 15.91 kB / 433.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.2824, allocations: 25.7 kB / 433.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2826, allocations: 310.8 kB / 433.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.037e-05/0.2827, allocations: 61.69 kB / 433.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.331e-05/0.2827, allocations: 65.67 kB / 433.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.2829, allocations: 140.2 kB / 434.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2829, allocations: 3.938 kB / 434.1 MB, free: 3.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002121/0.2831, allocations: 204.9 kB / 434.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.2831, allocations: 33.69 kB / 434.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2831, allocations: 0 / 434.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.2831, allocations: 4 kB / 434.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.986e-05/0.2832, allocations: 0 / 434.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.2832, allocations: 0 / 434.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.382e-05/0.2832, allocations: 4 kB / 434.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.2832, allocations: 4 kB / 434.3 MB, free: 2.965 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.0001226/0.2833, allocations: 160.1 kB / 434.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.2833, allocations: 7.891 kB / 434.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.666e-05/0.2834, allocations: 12.38 kB / 434.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2834, allocations: 0 / 434.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2834, allocations: 0 / 434.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2834, allocations: 0 / 434.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004552/0.2838, allocations: 441.4 kB / 434.9 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2838, allocations: 0 / 434.9 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.614e-06/0.2838, allocations: 3.938 kB / 434.9 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2838, allocations: 0 / 434.9 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2839, allocations: 8 kB / 434.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2839, allocations: 4 kB / 434.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2839, allocations: 320 / 434.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003121/0.2842, allocations: 330.8 kB / 435.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.385e-05/0.2842, allocations: 11.94 kB / 435.3 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.2842, allocations: 4 kB / 435.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.44e-05/0.2842, allocations: 4 kB / 435.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.06e-05/0.2843, allocations: 0 / 435.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.2843, allocations: 4 kB / 435.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.142e-05/0.2843, allocations: 91.27 kB / 435.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2843, allocations: 0 / 435.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.2846, allocations: 12 kB / 435.4 MB, free: 1.785 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.0009604/0.2855, allocations: 0.9789 MB / 436.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002345/0.2858, allocations: 194.8 kB / 436.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2858, allocations: 0 / 436.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.2859, allocations: 133 kB / 436.7 MB, free: 424 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.2861, allocations: 7.938 kB / 436.7 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.2877, allocations: 1.692 MB / 438.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.408e-05/0.2877, allocations: 71.33 kB / 438.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.193e-05/0.2877, allocations: 0 / 438.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.228e-05/0.2878, allocations: 11.44 kB / 438.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2878, allocations: 4 kB / 438.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02925/0.317, allocations: 2.462 MB / 440.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.99, allocations: 7.281 kB / 440.9 MB, free: 12.09 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.428256349172443]