Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 99.84 kB / 16.3 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 183.1 kB / 17.2 MB, free: 5.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 223.2 MB / 241.1 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002996/0.0003, allocations: 4 kB / 300.8 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 50.4 MB / 351.2 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002078/0.121, allocations: 1.135 MB / 352.4 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001715/0.1211, allocations: 35.84 kB / 352.4 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.278e-05/0.1212, allocations: 0 / 352.4 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.553e-05/0.1212, allocations: 0 / 352.4 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.877e-05/0.1213, allocations: 0 / 352.4 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.1215, allocations: 27.91 kB / 352.4 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.252e-05/0.1216, allocations: 27.91 kB / 352.4 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.262e-05/0.1217, allocations: 4 kB / 352.5 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.329e-05/0.1217, allocations: 4 kB / 352.5 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.488e-05/0.1218, allocations: 11.92 kB / 352.5 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.1218, allocations: 4 kB / 352.5 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.378e-06/0.1218, allocations: 0 / 352.5 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.559e-05/0.1218, allocations: 7.938 kB / 352.5 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.698e-05/0.1219, allocations: 29.7 kB / 352.5 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.89e-05/0.1219, allocations: 23.94 kB / 352.5 MB, free: 2.605 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.614e-06/0.122, allocations: 4 kB / 352.5 MB, free: 2.602 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.122, allocations: 0 / 352.5 MB, free: 2.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.122, allocations: 3.938 kB / 352.5 MB, free: 2.598 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003754/0.1223, allocations: 335.5 kB / 352.9 MB, free: 2.223 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1224, allocations: 12.03 kB / 352.9 MB, free: 2.211 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.644e-05/0.1224, allocations: 34.56 kB / 352.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.702e-05/0.1225, allocations: 11.86 kB / 352.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.1226, allocations: 167.1 kB / 353.1 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.1227, allocations: 7.938 kB / 353.1 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.1227, allocations: 8 kB / 353.1 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.123, allocations: 119.3 kB / 353.2 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.1231, allocations: 0 / 353.2 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.1231, allocations: 0 / 353.2 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1231, allocations: 7.891 kB / 353.2 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.1232, allocations: 23.98 kB / 353.2 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000141/0.1234, allocations: 157.7 kB / 353.4 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.1235, allocations: 66.47 kB / 353.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.1235, allocations: 4.031 kB / 353.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.1236, allocations: 30.56 kB / 353.5 MB, free: 1.457 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.1236, allocations: 0 / 353.5 MB, free: 1.457 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002743/0.1239, allocations: 81.7 kB / 353.6 MB, free: 1.371 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.1239, allocations: 55.41 kB / 353.6 MB, free: 1.305 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.424e-05/0.124, allocations: 117.8 kB / 353.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.124, allocations: 33.64 kB / 353.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.972e-05/0.1241, allocations: 80.14 kB / 353.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.1241, allocations: 4 kB / 353.9 MB, free: 1.055 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.1241, allocations: 0 / 353.9 MB, free: 1.055 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1243, allocations: 322.8 kB / 354.2 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.245e-05/0.1243, allocations: 4 kB / 354.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.193e-05/0.1244, allocations: 31.44 kB / 354.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.587e-05/0.1244, allocations: 11.98 kB / 354.2 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1244, allocations: 0 / 354.2 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.075e-05/0.1245, allocations: 57.64 kB / 354.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1245, allocations: 4 kB / 354.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1245, allocations: 7.922 kB / 354.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.1245, allocations: 8.125 kB / 354.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.172e-05/0.1246, allocations: 4 kB / 354.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1246, allocations: 4 kB / 354.3 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2e-05/0.1247, allocations: 3.906 kB / 354.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.1247, allocations: 7.953 kB / 354.3 MB, free: 0.5703 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 prepare postOptimizeDAE: time 9.013e-05/0.1248, allocations: 113.8 kB / 354.4 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.1249, allocations: 61.61 kB / 354.5 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.1249, allocations: 11.91 kB / 354.5 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.1249, allocations: 3.984 kB / 354.5 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.125, allocations: 4 kB / 354.5 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.125, allocations: 0 / 354.5 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.1251, allocations: 157.6 kB / 354.7 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1251, allocations: 0 / 354.7 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.866e-05/0.1252, allocations: 11.98 kB / 354.7 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.1252, allocations: 0 / 354.7 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.1252, allocations: 0 / 354.7 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1252, allocations: 7.938 kB / 354.7 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1252, allocations: 0 / 354.7 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001775/0.1254, allocations: 101 kB / 354.8 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.73e-05/0.1254, allocations: 81.05 kB / 354.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.1255, allocations: 4 kB / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.936e-05/0.1255, allocations: 0 / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-06/0.1255, allocations: 4 kB / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.1255, allocations: 4.312 kB / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.093e-05/0.1256, allocations: 95.2 kB / 355 MB, free: 15.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1256, allocations: 0 / 355 MB, free: 15.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001894/0.1258, allocations: 4 kB / 355 MB, free: 15.81 MB / 302.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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0005387/0.1263, allocations: 0.6557 MB / 355.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.1265, allocations: 31.92 kB / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1265, allocations: 0 / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.1265, allocations: 0 / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.1268, allocations: 32.33 kB / 355.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007399/0.1276, allocations: 0.8295 MB / 356.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.1278, allocations: 0.6887 MB / 357.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.349e-05/0.1279, allocations: 4 kB / 357.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.362e-05/0.1279, allocations: 7.438 kB / 357.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of SimCode: time 1.753e-06/0.1279, allocations: 0 / 357.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0108/0.1387, allocations: 1.138 MB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.139, allocations: 202.2 kB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/1.999, allocations: 0 / 358.6 MB, free: 12.24 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat does not exist to compare? outputFormat=mat