Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001613/0.001613, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.002047/0.002047, allocations: 207.5 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 207.6 MB / 235.3 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 51.92 kB / 347.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3056, allocations: 49.17 MB / 396.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001695/0.3073, allocations: 485.2 kB / 396.8 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002721/0.3075, allocations: 68.59 kB / 396.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.071e-05/0.3076, allocations: 0 / 396.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.787e-05/0.3076, allocations: 0.75 kB / 396.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.393e-05/0.3077, allocations: 16.22 kB / 396.9 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001688/0.3079, allocations: 18.59 kB / 396.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.308, allocations: 15.55 kB / 396.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.359e-05/0.308, allocations: 7.641 kB / 396.9 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.266e-05/0.3081, allocations: 21.64 kB / 396.9 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.435e-05/0.3081, allocations: 22.72 kB / 397 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.3082, allocations: 1.062 kB / 397 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.3082, allocations: 12.84 kB / 397 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.547e-05/0.3082, allocations: 8.484 kB / 397 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.247e-05/0.3083, allocations: 15.3 kB / 397 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.3084, allocations: 25.39 kB / 397 MB, free: 8.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3084, allocations: 0.5625 kB / 397 MB, free: 8.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3084, allocations: 0 / 397 MB, free: 8.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.3084, allocations: 0 / 397 MB, free: 8.59 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.0003181/0.3087, allocations: 286.9 kB / 397.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.3088, allocations: 13.17 kB / 397.3 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.661e-05/0.3088, allocations: 46.84 kB / 397.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.3089, allocations: 11.61 kB / 397.4 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.474e-05/0.3089, allocations: 111.7 kB / 397.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.3089, allocations: 1.531 kB / 397.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.309, allocations: 2.781 kB / 397.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.3091, allocations: 76.34 kB / 397.6 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.3091, allocations: 3.938 kB / 397.6 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.669e-06/0.3091, allocations: 5.594 kB / 397.6 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3091, allocations: 1.062 kB / 397.6 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5e-05/0.3092, allocations: 29.41 kB / 397.6 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002147/0.3094, allocations: 222.7 kB / 397.8 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.908e-05/0.3095, allocations: 65.98 kB / 397.9 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.869e-05/0.3095, allocations: 50.02 kB / 397.9 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.3095, allocations: 1.422 kB / 397.9 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.3096, allocations: 59.38 kB / 398 MB, free: 7.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.113e-06/0.3096, allocations: 0 / 398 MB, free: 7.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003389/0.3099, allocations: 214.4 kB / 398.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.3099, allocations: 84.45 kB / 398.3 MB, free: 7.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.045e-05/0.31, allocations: 114.7 kB / 398.4 MB, free: 7.398 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.107e-06/0.31, allocations: 26.98 kB / 398.4 MB, free: 7.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.951e-05/0.31, allocations: 86.02 kB / 398.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.653e-05/0.31, allocations: 20.61 kB / 398.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.3101, allocations: 23.53 kB / 398.6 MB, free: 7.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.643e-05/0.3101, allocations: 319.4 kB / 398.9 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.628e-05/0.3102, allocations: 40.34 kB / 398.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.693e-05/0.3102, allocations: 29.06 kB / 398.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.3103, allocations: 132.5 kB / 399.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3103, allocations: 0 / 399.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001703/0.3105, allocations: 166.6 kB / 399.2 MB, free: 6.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.3105, allocations: 38.89 kB / 399.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.3105, allocations: 1.062 kB / 399.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.3105, allocations: 3.938 kB / 399.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.772e-05/0.3106, allocations: 1.656 kB / 399.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3106, allocations: 1.094 kB / 399.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.158e-05/0.3106, allocations: 9.734 kB / 399.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.3106, allocations: 3.312 kB / 399.3 MB, free: 6.715 MB / 318.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 6.364e-05/0.3107, allocations: 151.5 kB / 399.4 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.878e-05/0.3107, allocations: 8.141 kB / 399.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.301e-05/0.3107, allocations: 7.438 kB / 399.4 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3107, allocations: 1.125 kB / 399.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3107, allocations: 4.422 kB / 399.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3107, allocations: 0.6562 kB / 399.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.311, allocations: 420.8 kB / 399.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.311, allocations: 9.094 kB / 399.9 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.211e-06/0.311, allocations: 5.312 kB / 399.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.311, allocations: 0 / 399.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.311, allocations: 3.875 kB / 399.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.311, allocations: 0 / 399.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.311, allocations: 0 / 399.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/0.3112, allocations: 296.5 kB / 400.2 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-06/0.3113, allocations: 5.109 kB / 400.2 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.3113, allocations: 6.828 kB / 400.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.525e-05/0.3113, allocations: 3.328 kB / 400.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.873e-05/0.3113, allocations: 2.984 kB / 400.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.3113, allocations: 3.531 kB / 400.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.96e-05/0.3114, allocations: 90.55 kB / 400.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3114, allocations: 0 / 400.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.3116, allocations: 12.06 kB / 400.3 MB, free: 5.93 MB / 318.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.000654/0.3122, allocations: 0.9003 MB / 401.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001804/0.3124, allocations: 137.5 kB / 401.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3124, allocations: 0 / 401.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.385e-05/0.3125, allocations: 98.83 kB / 401.4 MB, free: 5.039 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.3127, allocations: 4.625 kB / 401.4 MB, free: 5.039 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.3138, allocations: 1.572 MB / 403 MB, free: 3.758 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001027/0.3139, allocations: 0.6835 MB / 403.7 MB, free: 3.062 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.347e-05/0.3139, allocations: 2.734 kB / 403.7 MB, free: 3.062 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.3139, allocations: 13.66 kB / 403.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3139, allocations: 0 / 403.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.342, allocations: 2.063 MB / 405.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.12, allocations: 10.83 kB / 405.8 MB, free: 2.254 MB / 318.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.66511483490467]