Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001323/0.001323, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001332, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.002377/0.002377, allocations: 75.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2772, allocations: 50.53 MB / 409 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003413/0.2807, allocations: 1.901 MB / 410.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.2828, allocations: 1.196 MB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.283, allocations: 7.938 kB / 412.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006388/0.2836, allocations: 139.6 kB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004058/0.284, allocations: 151.4 kB / 412.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.2846, allocations: 171.5 kB / 412.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002853/0.2849, allocations: 199.4 kB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.285, allocations: 29.53 kB / 412.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2851, allocations: 75.64 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.2853, allocations: 67.69 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.091e-05/0.2853, allocations: 16 kB / 413 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.2855, allocations: 59.95 kB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.032e-05/0.2856, allocations: 47.78 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.689e-05/0.2857, allocations: 71.48 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.286, allocations: 210.3 kB / 413.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.286, allocations: 0 / 413.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.286, allocations: 0 / 413.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.286, allocations: 0 / 413.4 MB, free: 13.04 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007807/0.2868, allocations: 0.5232 MB / 413.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2869, allocations: 12.03 kB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.817e-05/0.2869, allocations: 34.75 kB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.999e-05/0.287, allocations: 24.8 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.2873, allocations: 271 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.2873, allocations: 4.375 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.2874, allocations: 11.92 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.2877, allocations: 153.9 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.2877, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.2877, allocations: 0 / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.964e-06/0.2877, allocations: 4 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/0.2878, allocations: 27.98 kB / 414.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00053/0.2884, allocations: 374.3 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002403/0.2886, allocations: 107.9 kB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.763e-05/0.2887, allocations: 50.55 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.2888, allocations: 4 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.2889, allocations: 71.33 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.289, allocations: 0 / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003735/0.2893, allocations: 145.6 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.2894, allocations: 132.5 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000336/0.2898, allocations: 284.9 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.2898, allocations: 29.64 kB / 415.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.766e-05/0.2899, allocations: 116.1 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.29, allocations: 19.84 kB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.434e-05/0.29, allocations: 33.91 kB / 415.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2902, allocations: 330.8 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.452e-05/0.2902, allocations: 20.05 kB / 416.1 MB, free: 10 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.2904, allocations: 78 kB / 416.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.2905, allocations: 76.25 kB / 416.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2905, allocations: 0 / 416.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002144/0.2907, allocations: 117.5 kB / 416.4 MB, free: 9.695 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.2908, allocations: 4 kB / 416.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.2908, allocations: 0 / 416.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.2908, allocations: 8.125 kB / 416.4 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.5e-05/0.2909, allocations: 11.98 kB / 416.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.2909, allocations: 4 kB / 416.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.957e-05/0.291, allocations: 15.83 kB / 416.4 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.291, allocations: 8 kB / 416.4 MB, free: 9.645 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001352/0.2911, allocations: 145.8 kB / 416.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.475e-05/0.2912, allocations: 61.59 kB / 416.6 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.213e-05/0.2913, allocations: 21.78 kB / 416.6 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2913, allocations: 3.938 kB / 416.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2913, allocations: 3.984 kB / 416.6 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.2913, allocations: 7.938 kB / 416.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.2915, allocations: 229.6 kB / 416.9 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2915, allocations: 0 / 416.9 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.484e-05/0.2916, allocations: 4 kB / 416.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2916, allocations: 7.984 kB / 416.9 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.2916, allocations: 0 / 416.9 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.2916, allocations: 8.062 kB / 416.9 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2916, allocations: 3.938 kB / 416.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.2919, allocations: 154.6 kB / 417 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.292, allocations: 112.9 kB / 417.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.292, allocations: 4 kB / 417.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.799e-05/0.2921, allocations: 4 kB / 417.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.2921, allocations: 11.92 kB / 417.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.2922, allocations: 8.094 kB / 417.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.2924, allocations: 204.4 kB / 417.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2924, allocations: 0 / 417.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.2926, allocations: 31.94 kB / 417.4 MB, free: 8.527 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001925/0.2946, allocations: 1.002 MB / 418.4 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.2948, allocations: 67.91 kB / 418.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2948, allocations: 0 / 418.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.062e-05/0.2949, allocations: 27.98 kB / 418.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.2953, allocations: 60.64 kB / 418.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.2977, allocations: 1.944 MB / 420.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.2981, allocations: 0.7358 MB / 421.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.156e-05/0.2981, allocations: 25.53 kB / 421.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.94e-05/0.2982, allocations: 47.42 kB / 421.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2982, allocations: 3.938 kB / 421.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8926/1.191, allocations: 4.647 MB / 426 MB, free: 116 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/9.19, allocations: 11.86 kB / 426 MB, free: 104 kB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1)