Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_InitialState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2606/0.2606, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 73.31 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1624, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.00564/0.1681, allocations: 3.367 MB / 483.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003799/0.1719, allocations: 1.587 MB / 485.2 MB, free: 152 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005125/0.1725, allocations: 23.88 kB / 485.2 MB, free: 128 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006223/0.1732, allocations: 142.8 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004833/0.1737, allocations: 186.5 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.1752, allocations: 0.5403 MB / 486 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.1763, allocations: 0.9007 MB / 486.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004441/0.1767, allocations: 234.4 kB / 487.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005395/0.1773, allocations: 362.5 kB / 487.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000578/0.1778, allocations: 402.1 kB / 487.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.178, allocations: 60 kB / 488 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.1781, allocations: 68 kB / 488 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002546/0.1784, allocations: 199.3 kB / 488.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00036/0.1788, allocations: 341.8 kB / 488.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00093/0.1797, allocations: 0.7551 MB / 489.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1797, allocations: 0 / 489.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1797, allocations: 0 / 489.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.1797, allocations: 0 / 489.3 MB, free: 11.95 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.002594/0.1823, allocations: 1.156 MB / 490.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.1824, allocations: 13.11 kB / 490.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001238/0.1826, allocations: 86.7 kB / 490.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002938/0.1829, allocations: 99.81 kB / 490.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.1839, allocations: 0.5546 MB / 491.2 MB, free: 9.949 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.96e-05/0.1839, allocations: 37.38 kB / 491.3 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.184, allocations: 60.28 kB / 491.3 MB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.1853, allocations: 0.6292 MB / 492 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.1853, allocations: 0 / 492 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.1853, allocations: 23.98 kB / 492 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.1854, allocations: 12 kB / 492 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.1865, allocations: 465.8 kB / 492.4 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003991/0.1905, allocations: 2.651 MB / 495.1 MB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.1917, allocations: 0.5526 MB / 495.7 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005666/0.1923, allocations: 258.4 kB / 495.9 MB, free: 5.094 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.28e-05/0.1923, allocations: 8 kB / 495.9 MB, free: 5.086 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.1924, allocations: 38.56 kB / 496 MB, free: 5.039 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.485e-06/0.1924, allocations: 0 / 496 MB, free: 5.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002659/0.1951, allocations: 1.132 MB / 497.1 MB, free: 3.895 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.1952, allocations: 166.2 kB / 497.2 MB, free: 3.695 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009431/0.1962, allocations: 0.6529 MB / 497.9 MB, free: 3.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.1962, allocations: 37.7 kB / 497.9 MB, free: 2.988 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003347/0.1966, allocations: 356 kB / 498.3 MB, free: 2.633 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.1967, allocations: 177.5 kB / 498.5 MB, free: 2.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/0.197, allocations: 118.2 kB / 498.6 MB, free: 2.336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.1971, allocations: 337.9 kB / 498.9 MB, free: 2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000667/0.1978, allocations: 271.3 kB / 499.2 MB, free: 1.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007865/0.1986, allocations: 433.5 kB / 499.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.2, allocations: 0.674 MB / 0.4885 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.2, allocations: 4 kB / 0.4885 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001747/0.2018, allocations: 0.7951 MB / 0.4893 GB, free: 15.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.2018, allocations: 4 kB / 0.4893 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.2018, allocations: 8.031 kB / 0.4893 GB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.895e-05/0.2019, allocations: 8 kB / 0.4893 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006938/0.2026, allocations: 151.7 kB / 0.4895 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.731e-05/0.2026, allocations: 15.92 kB / 0.4895 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005848/0.2032, allocations: 83.67 kB / 0.4896 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.784e-05/0.2033, allocations: 27.98 kB / 0.4896 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008253/0.2041, allocations: 405.3 kB / 0.49 GB, free: 15.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007913/0.2049, allocations: 428.8 kB / 0.4904 GB, free: 14.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001351/0.2063, allocations: 0.6585 MB / 0.491 GB, free: 13.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.927e-06/0.2063, allocations: 0 / 0.491 GB, free: 13.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001733/0.208, allocations: 0.7727 MB / 0.4918 GB, free: 13.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.2081, allocations: 8 kB / 0.4918 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.2081, allocations: 4 kB / 0.4918 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.2081, allocations: 8 kB / 0.4918 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/0.2088, allocations: 139.8 kB / 0.4919 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.548e-05/0.2088, allocations: 15.88 kB / 0.492 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005596/0.2094, allocations: 83.72 kB / 0.492 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/0.2094, allocations: 28 kB / 0.4921 GB, free: 12.75 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 (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * 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.0002476/0.2097, allocations: 220 kB / 0.4923 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.2099, allocations: 75.06 kB / 0.4924 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002232/0.2101, allocations: 94.2 kB / 0.4924 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.2101, allocations: 7.938 kB / 0.4924 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.2101, allocations: 0 / 0.4924 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.2102, allocations: 11.98 kB / 0.4925 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.2117, allocations: 0.8415 MB / 0.4933 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.2117, allocations: 7.938 kB / 0.4933 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006972/0.2124, allocations: 103.9 kB / 0.4934 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.794e-06/0.2125, allocations: 0 / 0.4934 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.398e-05/0.2125, allocations: 23.98 kB / 0.4934 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.2126, allocations: 0 / 0.4934 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.2126, allocations: 0 / 0.4934 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.215, allocations: 1.14 MB / 0.4945 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002892/0.2153, allocations: 196.1 kB / 0.4947 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.2154, allocations: 15.94 kB / 0.4947 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005485/0.216, allocations: 47.94 kB / 0.4948 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.2161, allocations: 39.94 kB / 0.4948 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.2162, allocations: 16 kB / 0.4948 GB, free: 9.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007524/0.2169, allocations: 459 kB / 0.4953 GB, free: 9.375 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2169, allocations: 4 kB / 0.4953 GB, free: 9.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008514/0.2178, allocations: 188 kB / 0.4954 GB, free: 9.188 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * 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.002554/0.2203, allocations: 1.694 MB / 0.4971 GB, free: 7.465 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.2228, allocations: 0.9939 MB / 0.4981 GB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.2228, allocations: 4.062 kB / 0.4981 GB, free: 6.469 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006496/0.2235, allocations: 274.5 kB / 0.4983 GB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.2246, allocations: 190.8 kB / 0.4985 GB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2465/0.4711, allocations: 6.872 MB / 0.5052 GB, free: 40.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005679/0.4717, allocations: 0.9519 MB / 0.5062 GB, free: 39.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007186/0.4724, allocations: 150.1 kB / 0.5063 GB, free: 39.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000367/0.4728, allocations: 256.3 kB / 0.5065 GB, free: 39.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4728, allocations: 1.688 kB / 0.5065 GB, free: 39.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05369/0.5265, allocations: 14.34 MB / 0.5206 GB, free: 35.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.17/8.696, allocations: 19.17 kB / 0.5206 GB, free: 35.48 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous_InitialState_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous_InitialState.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1)