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.006317/0.006317, allocations: 114.3 kB / 21.97 MB, free: 5.23 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.00168/0.00168, allocations: 211.4 kB / 25.27 MB, free: 3.246 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.393/1.393, allocations: 207.6 MB / 236 MB, free: 9.988 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",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.001741/0.001741, allocations: 50.91 kB / 347.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2346, allocations: 49.16 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001453/0.2361, allocations: 495.4 kB / 397.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002229/0.2363, allocations: 58.17 kB / 397.7 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.5e-05/0.2363, allocations: 1.188 kB / 397.7 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.432e-05/0.2363, allocations: 0.5625 kB / 397.7 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.448e-05/0.2364, allocations: 16.55 kB / 397.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001378/0.2365, allocations: 22.98 kB / 397.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.403e-05/0.2366, allocations: 19.61 kB / 397.7 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.693e-05/0.2367, allocations: 5.75 kB / 397.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.85e-05/0.2367, allocations: 18.78 kB / 397.7 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.538e-05/0.2367, allocations: 31.14 kB / 397.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.2368, allocations: 0 / 397.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.714e-05/0.2368, allocations: 5.656 kB / 397.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.505e-05/0.2368, allocations: 9.016 kB / 397.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.586e-05/0.2369, allocations: 7.594 kB / 397.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.654e-05/0.2369, allocations: 39.61 kB / 397.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.237, allocations: 0.7969 kB / 397.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.237, allocations: 1.469 kB / 397.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.237, allocations: 0 / 397.8 MB, free: 8.609 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.0002312/0.2372, allocations: 285.6 kB / 398.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.2372, allocations: 13.11 kB / 398.1 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.239e-05/0.2372, allocations: 2.312 kB / 398.1 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.2373, allocations: 38.56 kB / 398.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.2373, allocations: 7.141 kB / 398.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.78e-05/0.2374, allocations: 114.8 kB / 398.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-06/0.2374, allocations: 1.5 kB / 398.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.2374, allocations: 4.062 kB / 398.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.2375, allocations: 71.25 kB / 398.4 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.2375, allocations: 0 / 398.4 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.2375, allocations: 5.672 kB / 398.4 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.2375, allocations: 1.188 kB / 398.4 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.776e-05/0.2376, allocations: 36.78 kB / 398.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001643/0.2377, allocations: 228 kB / 398.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.48e-05/0.2378, allocations: 65.2 kB / 398.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.505e-05/0.2379, allocations: 51.33 kB / 398.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.316e-06/0.2379, allocations: 0 / 398.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.2379, allocations: 59.72 kB / 398.8 MB, free: 7.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 8.01e-07/0.2379, allocations: 0 / 398.8 MB, free: 7.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002896/0.2382, allocations: 206.5 kB / 399 MB, free: 7.633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/0.2382, allocations: 80.47 kB / 399.1 MB, free: 7.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.856e-05/0.2383, allocations: 118.3 kB / 399.2 MB, free: 7.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.665e-06/0.2383, allocations: 26.83 kB / 399.2 MB, free: 7.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.778e-05/0.2383, allocations: 83.03 kB / 399.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.2383, allocations: 15.36 kB / 399.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.312e-05/0.2383, allocations: 28.7 kB / 399.3 MB, free: 7.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.855e-05/0.2384, allocations: 317.6 kB / 399.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.089e-05/0.2384, allocations: 33.7 kB / 399.7 MB, free: 6.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.693e-05/0.2385, allocations: 33.66 kB / 399.7 MB, free: 6.957 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.003e-05/0.2385, allocations: 140 kB / 399.8 MB, free: 6.867 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.123e-06/0.2385, allocations: 3.938 kB / 399.9 MB, free: 6.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001518/0.2387, allocations: 167.4 kB / 400 MB, free: 6.789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.2387, allocations: 37.67 kB / 400.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2387, allocations: 1.156 kB / 400.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.2387, allocations: 0 / 400.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.86e-05/0.2388, allocations: 5.688 kB / 400.1 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.2388, allocations: 5.141 kB / 400.1 MB, free: 6.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.227e-05/0.2388, allocations: 9.844 kB / 400.1 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.2388, allocations: 2.906 kB / 400.1 MB, free: 6.738 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.513e-05/0.2389, allocations: 156 kB / 400.2 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.823e-05/0.2389, allocations: 11.19 kB / 400.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.666e-05/0.2389, allocations: 7.031 kB / 400.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2389, allocations: 1.828 kB / 400.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2389, allocations: 0 / 400.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2389, allocations: 1.859 kB / 400.3 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002969/0.2392, allocations: 415.4 kB / 400.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2392, allocations: 1.828 kB / 400.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.13e-06/0.2392, allocations: 7.938 kB / 400.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.2392, allocations: 1.156 kB / 400.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.2392, allocations: 3.234 kB / 400.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2392, allocations: 1.781 kB / 400.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2392, allocations: 0 / 400.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00019/0.2394, allocations: 287.5 kB / 401 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.175e-06/0.2394, allocations: 10.77 kB / 401 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.2395, allocations: 6.422 kB / 401 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.277e-05/0.2395, allocations: 5.406 kB / 401 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.2395, allocations: 8.516 kB / 401 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.2395, allocations: 2.75 kB / 401 MB, free: 6.031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.867e-05/0.2395, allocations: 90.41 kB / 401.1 MB, free: 5.953 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2395, allocations: 0 / 401.1 MB, free: 5.953 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002221/0.2398, allocations: 16.17 kB / 401.1 MB, free: 5.949 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.0005927/0.2404, allocations: 0.9009 MB / 402 MB, free: 5.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001666/0.2405, allocations: 136.3 kB / 402.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2405, allocations: 1.25 kB / 402.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.253e-05/0.2406, allocations: 94.45 kB / 402.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.2408, allocations: 8.062 kB / 402.2 MB, free: 5.059 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.2418, allocations: 1.558 MB / 403.8 MB, free: 3.793 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.2419, allocations: 0.6886 MB / 404.5 MB, free: 3.094 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.229e-05/0.242, allocations: 1.031 kB / 404.5 MB, free: 3.094 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.445e-05/0.242, allocations: 14.8 kB / 404.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.242, allocations: 0 / 404.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.2643, allocations: 2.091 MB / 406.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.47, allocations: 7.078 kB / 406.6 MB, free: 2.246 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: 12.904676645004656]