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.0008618/0.0008619, allocations: 96.12 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009494/0.0009494, allocations: 201.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002023/0.0002024, allocations: 8 kB / 307.8 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0836/0.08382, allocations: 51.51 MB / 359.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001516/0.08537, allocations: 1.164 MB / 360.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001813/0.08558, allocations: 35.91 kB / 360.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.529e-05/0.08565, allocations: 7.938 kB / 360.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.08568, allocations: 7.984 kB / 360.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.469e-05/0.08573, allocations: 0 / 360.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.08594, allocations: 27.91 kB / 360.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.489e-05/0.08603, allocations: 35.92 kB / 360.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.801e-05/0.08611, allocations: 4 kB / 360.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.971e-05/0.08617, allocations: 15.92 kB / 360.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.385e-05/0.08622, allocations: 27.84 kB / 360.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.08624, allocations: 0 / 360.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.939e-06/0.08626, allocations: 4 kB / 360.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.833e-05/0.08628, allocations: 7.938 kB / 360.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.118e-05/0.08633, allocations: 41.62 kB / 360.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.657e-05/0.08641, allocations: 39.88 kB / 360.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.08642, allocations: 0 / 360.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.08642, allocations: 0 / 360.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.066e-06/0.08643, allocations: 0 / 360.8 MB, free: 11.79 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.0003685/0.0868, allocations: 343.7 kB / 361.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.08684, allocations: 8.031 kB / 361.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.655e-05/0.08689, allocations: 38.75 kB / 361.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.08692, allocations: 12.83 kB / 361.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.08708, allocations: 176.3 kB / 361.3 MB, free: 11.13 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.0001108/0.0872, allocations: 42.25 kB / 361.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.08722, allocations: 4.375 kB / 361.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.08749, allocations: 119.6 kB / 361.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.08751, allocations: 7.922 kB / 361.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.08752, allocations: 0 / 361.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.08753, allocations: 8 kB / 361.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.662e-05/0.08759, allocations: 19.98 kB / 361.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001288/0.08773, allocations: 161.6 kB / 361.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.08791, allocations: 135.8 kB / 361.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.368e-05/0.08798, allocations: 28.84 kB / 361.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.08799, allocations: 0 / 361.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.08802, allocations: 42.44 kB / 361.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 9.41e-07/0.08803, allocations: 0 / 361.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001798/0.08821, allocations: 73.69 kB / 362 MB, free: 10.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.08827, allocations: 55.39 kB / 362 MB, free: 10.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.429e-05/0.08835, allocations: 101.9 kB / 362.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.08837, allocations: 33.64 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.153e-05/0.08841, allocations: 88.12 kB / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.08843, allocations: 11.89 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.19e-05/0.08846, allocations: 17.72 kB / 362.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.08856, allocations: 318.8 kB / 362.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.437e-05/0.08858, allocations: 4 kB / 362.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.424e-05/0.08862, allocations: 40.23 kB / 362.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.308e-05/0.08868, allocations: 56.22 kB / 362.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.08869, allocations: 0 / 362.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001035/0.08879, allocations: 65.62 kB / 362.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.08882, allocations: 11.88 kB / 362.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.08883, allocations: 7.938 kB / 362.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.08885, allocations: 4.156 kB / 362.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.014e-05/0.08889, allocations: 4 kB / 362.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.0889, allocations: 4 kB / 362.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.388e-05/0.08893, allocations: 3.906 kB / 362.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/0.08894, allocations: 4 kB / 362.8 MB, free: 9.488 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 6.848e-05/0.08902, allocations: 117.8 kB / 362.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.08912, allocations: 69.56 kB / 363 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.138e-05/0.08915, allocations: 11.95 kB / 363 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.08916, allocations: 0 / 363 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.08917, allocations: 4.438 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.08918, allocations: 0 / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.167e-05/0.08927, allocations: 161.7 kB / 363.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.08928, allocations: 4 kB / 363.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.251e-06/0.08929, allocations: 0 / 363.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.0893, allocations: 3.938 kB / 363.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.08931, allocations: 0 / 363.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.08931, allocations: 0 / 363.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.08932, allocations: 0 / 363.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.08944, allocations: 101 kB / 363.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-05/0.08948, allocations: 84.98 kB / 363.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.08951, allocations: 8 kB / 363.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.935e-05/0.08956, allocations: 0 / 363.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-06/0.08957, allocations: 4 kB / 363.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.08958, allocations: 0 / 363.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.653e-05/0.08962, allocations: 87.27 kB / 363.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08962, allocations: 0 / 363.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001822/0.08981, allocations: 8 kB / 363.4 MB, free: 8.73 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.0004166/0.09023, allocations: 0.6477 MB / 364.1 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.327e-05/0.09033, allocations: 39.95 kB / 364.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.09034, allocations: 0 / 364.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.044e-06/0.09035, allocations: 4 kB / 364.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000585/0.09094, allocations: 0.7252 MB / 364.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009151/0.09187, allocations: 1.228 MB / 366.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.0921, allocations: 0.6848 MB / 366.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.78e-05/0.09212, allocations: 0 / 366.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.076e-05/0.09216, allocations: 15.44 kB / 366.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.09216, allocations: 0 / 366.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01084/0.103, allocations: 1.448 MB / 368.2 MB, free: 3.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/0.1033, allocations: 223.2 kB / 368.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/1.723, allocations: 0 / 368.4 MB, free: 3.668 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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