Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 202 kB / 18.74 MB, free: 4.332 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.445/1.445, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.001855/0.001855, allocations: 67.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2593, allocations: 50.55 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003675/0.263, allocations: 1.924 MB / 411 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002499/0.2656, allocations: 1.309 MB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.2657, allocations: 3.938 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003223/0.266, allocations: 75.66 kB / 412.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003368/0.2664, allocations: 127.4 kB / 412.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006529/0.2671, allocations: 227.2 kB / 412.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.2673, allocations: 191.4 kB / 412.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.2674, allocations: 33.67 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.2676, allocations: 79.69 kB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.2677, allocations: 83.62 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.2677, allocations: 8 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.2679, allocations: 75.88 kB / 413.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.376e-05/0.268, allocations: 51.78 kB / 413.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.843e-05/0.2681, allocations: 87.41 kB / 413.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003418/0.2684, allocations: 249.9 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2684, allocations: 4 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2685, allocations: 0 / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.2685, allocations: 0 / 413.6 MB, free: 12.84 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007124/0.2692, allocations: 0.5542 MB / 414.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.2692, allocations: 12.03 kB / 414.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.884e-05/0.2693, allocations: 38.73 kB / 414.2 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.417e-05/0.2693, allocations: 24.8 kB / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004091/0.2697, allocations: 315.7 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.2698, allocations: 12.31 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.2698, allocations: 7.938 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.2701, allocations: 180.4 kB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.2702, allocations: 3.938 kB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.2702, allocations: 4 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.2702, allocations: 4 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001123/0.2703, allocations: 35.92 kB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005578/0.2709, allocations: 407.2 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.2711, allocations: 138.5 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.2713, allocations: 63.42 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.2713, allocations: 4 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.2715, allocations: 83.44 kB / 415.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 3.246e-06/0.2715, allocations: 4 kB / 415.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003959/0.2719, allocations: 177.3 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.272, allocations: 187.9 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.2724, allocations: 342.9 kB / 416.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.2724, allocations: 33.7 kB / 416.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.872e-05/0.2725, allocations: 132.8 kB / 416.3 MB, free: 9.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.2725, allocations: 15.91 kB / 416.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.545e-05/0.2726, allocations: 37.66 kB / 416.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.2727, allocations: 338.8 kB / 416.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.212e-05/0.2728, allocations: 23.98 kB / 416.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.2729, allocations: 107.1 kB / 416.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.2731, allocations: 105.8 kB / 416.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2731, allocations: 0 / 416.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000246/0.2734, allocations: 137.4 kB / 417 MB, free: 8.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2734, allocations: 7.984 kB / 417 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2734, allocations: 4 kB / 417 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.2734, allocations: 0 / 417 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.2735, allocations: 23.94 kB / 417.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.2736, allocations: 4.172 kB / 417.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.867e-05/0.2736, allocations: 19.88 kB / 417.1 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.2737, allocations: 8 kB / 417.1 MB, free: 8.902 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001388/0.2738, allocations: 157.7 kB / 417.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.2739, allocations: 85.44 kB / 417.3 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.335e-05/0.274, allocations: 29.73 kB / 417.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.274, allocations: 0 / 417.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.274, allocations: 96 / 417.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.274, allocations: 16.23 kB / 417.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.2742, allocations: 241.6 kB / 417.6 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2743, allocations: 8 kB / 417.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.909e-05/0.2743, allocations: 15.94 kB / 417.6 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2743, allocations: 0 / 417.6 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.2744, allocations: 7.984 kB / 417.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2744, allocations: 0 / 417.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2744, allocations: 0 / 417.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.2747, allocations: 191.3 kB / 417.8 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.2748, allocations: 124.8 kB / 418 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.2748, allocations: 4 kB / 418 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.489e-05/0.2749, allocations: 4 kB / 418 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.924e-05/0.275, allocations: 15.92 kB / 418 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.275, allocations: 4 kB / 418 MB, free: 7.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002476/0.2752, allocations: 257.9 kB / 418.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2753, allocations: 0 / 418.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002512/0.2755, allocations: 35.94 kB / 418.3 MB, free: 7.617 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.02529/0.3008, allocations: 1.034 MB / 419.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003436/0.3012, allocations: 87.83 kB / 419.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3012, allocations: 0 / 419.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.659e-05/0.3013, allocations: 27.98 kB / 419.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.3018, allocations: 97.27 kB / 419.5 MB, free: 6.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/0.3046, allocations: 2.324 MB / 421.8 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.3049, allocations: 0.7437 MB / 422.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.305, allocations: 29.53 kB / 422.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3052, allocations: 71.41 kB / 422.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3052, allocations: 0 / 422.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.3353, allocations: 5.673 MB / 428.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.545/8.881, allocations: 11.23 kB / 428.4 MB, free: 13.66 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1)