Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialOutput.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000966/0.0009659, allocations: 102.3 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 203.3 kB / 17.9 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.595/1.595, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2374/0.2374, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004975/0.0004977, allocations: 12 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1595, allocations: 63.46 MB / 481.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialOutput): time 0.003722/0.1633, allocations: 2.844 MB / 484.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0033/0.1666, allocations: 1.506 MB / 485.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006928/0.1673, allocations: 11.94 kB / 485.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006317/0.168, allocations: 99.27 kB / 486 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008109/0.1688, allocations: 179.4 kB / 486.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001406/0.1702, allocations: 426.6 kB / 486.6 MB, free: 216 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.1717, allocations: 0.597 MB / 487.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000492/0.1722, allocations: 165.2 kB / 487.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008195/0.173, allocations: 318.7 kB / 487.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007092/0.1737, allocations: 330.4 kB / 488 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001864/0.1739, allocations: 20 kB / 488 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003717/0.1743, allocations: 135.7 kB / 488.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.1746, allocations: 139.4 kB / 488.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.1748, allocations: 133.3 kB / 488.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008031/0.1756, allocations: 0.6314 MB / 489 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1756, allocations: 0 / 489 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1756, allocations: 0 / 489 MB, free: 13.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.1757, allocations: 0 / 489 MB, free: 13.75 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002333/0.178, allocations: 1.063 MB / 490.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1781, allocations: 8.031 kB / 490.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/0.1782, allocations: 86.52 kB / 490.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002608/0.1785, allocations: 103 kB / 490.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.1795, allocations: 0.5381 MB / 490.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.104e-05/0.1795, allocations: 37 kB / 490.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-05/0.1796, allocations: 59.98 kB / 490.9 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.1808, allocations: 0.6299 MB / 491.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.1808, allocations: 15.84 kB / 491.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.196e-05/0.1809, allocations: 20 kB / 491.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.1809, allocations: 8 kB / 491.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.182, allocations: 0.49 MB / 492.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003943/0.1859, allocations: 2.667 MB / 494.7 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.187, allocations: 0.5421 MB / 495.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.47e-05/0.187, allocations: 4.234 kB / 495.3 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.1871, allocations: 46.72 kB / 495.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.1871, allocations: 0 / 495.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002572/0.1897, allocations: 1.222 MB / 496.5 MB, free: 5.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.671e-05/0.1898, allocations: 166.1 kB / 496.7 MB, free: 5.707 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008832/0.1907, allocations: 0.6451 MB / 497.3 MB, free: 5.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.016e-05/0.1907, allocations: 37.7 kB / 497.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002899/0.191, allocations: 356.8 kB / 497.7 MB, free: 4.652 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.1912, allocations: 177.4 kB / 497.9 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.035e-05/0.1912, allocations: 12 kB / 497.9 MB, free: 4.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1914, allocations: 337.9 kB / 498.2 MB, free: 4.129 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006364/0.192, allocations: 301.1 kB / 498.5 MB, free: 3.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007715/0.1928, allocations: 457.8 kB / 499 MB, free: 3.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000715/0.1936, allocations: 355.5 kB / 499.3 MB, free: 2.973 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1936, allocations: 0 / 499.3 MB, free: 2.973 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001969/0.1955, allocations: 0.8553 MB / 0.4885 GB, free: 2.109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000855/0.1964, allocations: 1.75 MB / 0.4902 GB, free: 228 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.1964, allocations: 7.984 kB / 0.4902 GB, free: 220 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.1965, allocations: 8 kB / 0.4902 GB, free: 212 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009566/0.1974, allocations: 207.8 kB / 0.4904 GB, free: 4 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.572e-05/0.1975, allocations: 15.98 kB / 0.4904 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005766/0.1981, allocations: 91.62 kB / 0.4905 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-05/0.1981, allocations: 28 kB / 0.4905 GB, free: 15.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.394e-06/0.1981, allocations: 0 / 0.4905 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001453/0.1996, allocations: 0.7426 MB / 0.4912 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1996, allocations: 4 kB / 0.4912 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.1996, allocations: 8 kB / 0.4913 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000788/0.2004, allocations: 200.1 kB / 0.4914 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.2004, allocations: 15.92 kB / 0.4915 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005412/0.201, allocations: 87.55 kB / 0.4915 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.201, allocations: 31.98 kB / 0.4916 GB, free: 14.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003696/0.2014, allocations: 293.3 kB / 0.4919 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.2016, allocations: 71.16 kB / 0.4919 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001645/0.2017, allocations: 94.89 kB / 0.492 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.2018, allocations: 4 kB / 0.492 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.2018, allocations: 0 / 0.492 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2018, allocations: 4 kB / 0.492 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.2038, allocations: 1.287 MB / 0.4933 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2038, allocations: 0 / 0.4933 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006214/0.2045, allocations: 123.9 kB / 0.4934 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.2045, allocations: 4 kB / 0.4934 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.033e-05/0.2045, allocations: 19.98 kB / 0.4934 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.2045, allocations: 3.938 kB / 0.4934 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.2046, allocations: 7.953 kB / 0.4934 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.2069, allocations: 1.279 MB / 0.4947 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003384/0.2072, allocations: 192.2 kB / 0.4949 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.2e-05/0.2073, allocations: 19.98 kB / 0.4949 GB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005251/0.2078, allocations: 55.95 kB / 0.4949 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.208, allocations: 47.88 kB / 0.495 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.059e-05/0.208, allocations: 11.98 kB / 0.495 GB, free: 11.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006273/0.2086, allocations: 455 kB / 0.4954 GB, free: 10.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2087, allocations: 0 / 0.4954 GB, free: 10.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009172/0.2096, allocations: 231.9 kB / 0.4956 GB, free: 10.48 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003164/0.2128, allocations: 2.136 MB / 0.4977 GB, free: 8.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.2152, allocations: 1.047 MB / 0.4988 GB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2152, allocations: 0 / 0.4988 GB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006654/0.2159, allocations: 307.8 kB / 0.499 GB, free: 6.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.2169, allocations: 173.1 kB / 0.4992 GB, free: 6.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2292/0.4461, allocations: 7.768 MB / 0.5068 GB, free: 40.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005333/0.4467, allocations: 0.9672 MB / 0.5077 GB, free: 39.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006759/0.4474, allocations: 150.7 kB / 0.5079 GB, free: 39.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003627/0.4477, allocations: 257.9 kB / 0.5081 GB, free: 39.63 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4477, allocations: 1.156 kB / 0.5081 GB, free: 39.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03525/0.483, allocations: 14.32 MB / 0.5221 GB, free: 35.74 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.4832, allocations: 183.1 kB / 0.5223 GB, free: 35.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.195/2.678, allocations: 0 / 0.5223 GB, free: 35.5 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialOutput.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialOutput.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialOutput_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialOutput_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialOutput.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialOutput.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialOutput_res.mat does not exist to compare? outputFormat=mat