Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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) 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(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001156/0.001156, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.00131, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 71.94 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 50.52 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003001/0.1113, allocations: 1.437 MB / 359 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000227/0.1115, allocations: 39.84 kB / 359.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.914e-05/0.1116, allocations: 0 / 359.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.289e-05/0.1117, allocations: 3.938 kB / 359.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.812e-05/0.1118, allocations: 0 / 359.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.1121, allocations: 35.89 kB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.895e-05/0.1122, allocations: 35.92 kB / 359.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.1123, allocations: 12 kB / 359.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.512e-05/0.1124, allocations: 19.91 kB / 359.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.766e-05/0.1124, allocations: 19.92 kB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.1124, allocations: 0 / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.177e-05/0.1125, allocations: 4 kB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.821e-05/0.1125, allocations: 15.92 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.754e-05/0.1125, allocations: 19.92 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.1127, allocations: 35.89 kB / 359.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1127, allocations: 4 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1127, allocations: 0 / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.1127, allocations: 0 / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004782/0.1132, allocations: 355.6 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1132, allocations: 12.02 kB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.78e-05/0.1133, allocations: 34.75 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.877e-05/0.1133, allocations: 8.844 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.1135, allocations: 180.2 kB / 359.8 MB, free: 11.65 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.1136, allocations: 42.25 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.1137, allocations: 8.375 kB / 359.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.114, allocations: 127.6 kB / 360 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.114, allocations: 3.938 kB / 360 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.114, allocations: 0 / 360 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.114, allocations: 0 / 360 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.355e-05/0.1141, allocations: 15.94 kB / 360 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001481/0.1142, allocations: 169.7 kB / 360.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/0.1145, allocations: 135.8 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.786e-05/0.1146, allocations: 24.86 kB / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.1146, allocations: 0 / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1146, allocations: 42.44 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.1146, allocations: 0 / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002039/0.1148, allocations: 73.67 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.115, allocations: 63.34 kB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.099e-05/0.115, allocations: 109.8 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.1151, allocations: 25.7 kB / 360.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.955e-05/0.1151, allocations: 84.14 kB / 360.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.521e-05/0.1151, allocations: 4 kB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.1152, allocations: 17.72 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1153, allocations: 318.8 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.811e-05/0.1153, allocations: 8 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.747e-05/0.1154, allocations: 44.22 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.69e-05/0.1155, allocations: 52.23 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1155, allocations: 0 / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000105/0.1156, allocations: 73.47 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1156, allocations: 14.91 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1156, allocations: 0 / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.1156, allocations: 0 / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.344e-05/0.1157, allocations: 8.438 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.1157, allocations: 4.141 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.709e-05/0.1157, allocations: 8 kB / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.1157, allocations: 4 kB / 361.3 MB, free: 10 MB / 302.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: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001059/0.1158, allocations: 125.8 kB / 361.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1159, allocations: 65.56 kB / 361.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.379e-05/0.116, allocations: 7.969 kB / 361.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.116, allocations: 0 / 361.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.116, allocations: 4 kB / 361.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.116, allocations: 0 / 361.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.1161, allocations: 161.7 kB / 361.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1161, allocations: 0 / 361.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.583e-06/0.1161, allocations: 0 / 361.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1161, allocations: 3.938 kB / 361.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.1162, allocations: 7.984 kB / 361.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.1162, allocations: 0 / 361.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1162, allocations: 3.938 kB / 361.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.1163, allocations: 94.66 kB / 361.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.831e-05/0.1164, allocations: 81.05 kB / 361.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.1164, allocations: 11.94 kB / 361.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.615e-05/0.1164, allocations: 7.984 kB / 361.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.514e-06/0.1164, allocations: 0 / 361.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.1165, allocations: 4 kB / 361.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.008e-05/0.1165, allocations: 79.28 kB / 361.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1165, allocations: 0 / 361.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001968/0.1167, allocations: 12 kB / 361.9 MB, free: 9.242 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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0005056/0.1172, allocations: 0.6516 MB / 362.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001091/0.1173, allocations: 35.92 kB / 362.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.1174, allocations: 4 kB / 362.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.52e-07/0.1174, allocations: 0 / 362.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.118, allocations: 0.7319 MB / 363.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.1191, allocations: 1.23 MB / 364.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.1194, allocations: 0.6807 MB / 365.3 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.032e-05/0.1194, allocations: 3.984 kB / 365.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.1195, allocations: 18.81 kB / 365.3 MB, free: 5.711 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1195, allocations: 0 / 365.3 MB, free: 5.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.14, allocations: 1.636 MB / 366.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.572/7.712, allocations: 10.56 kB / 366.9 MB, free: 4.184 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches