Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 102.3 kB / 16.5 MB, free: 6.695 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.001458/0.001458, allocations: 194.4 kB / 17.42 MB, free: 6.09 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.619/1.619, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 50.89 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1546, allocations: 49.44 MB / 349.5 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003726/0.1583, allocations: 1.491 MB / 351 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002458/0.1586, allocations: 35.91 kB / 351 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.312e-05/0.1587, allocations: 3.938 kB / 351 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.091e-05/0.1588, allocations: 3.984 kB / 351 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.714e-05/0.1589, allocations: 7.922 kB / 351 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002841/0.1592, allocations: 19.98 kB / 351.1 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.697e-05/0.1593, allocations: 35.91 kB / 351.1 MB, free: 3.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.1594, allocations: 19.98 kB / 351.1 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.547e-05/0.1595, allocations: 15.92 kB / 351.1 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.002e-05/0.1595, allocations: 19.92 kB / 351.2 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.1595, allocations: 0 / 351.2 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.395e-05/0.1596, allocations: 4 kB / 351.2 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.714e-05/0.1596, allocations: 7.922 kB / 351.2 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.325e-05/0.1597, allocations: 19.92 kB / 351.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.1598, allocations: 39.88 kB / 351.2 MB, free: 3.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1598, allocations: 0 / 351.2 MB, free: 3.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1598, allocations: 0 / 351.2 MB, free: 3.035 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1598, allocations: 0 / 351.2 MB, free: 3.035 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005662/0.1604, allocations: 355.7 kB / 351.6 MB, free: 2.637 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.1604, allocations: 8.031 kB / 351.6 MB, free: 2.629 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.616e-05/0.1605, allocations: 42.73 kB / 351.6 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.353e-05/0.1606, allocations: 4.844 kB / 351.6 MB, free: 2.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.1608, allocations: 184.2 kB / 351.8 MB, free: 2.355 MB / 286.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.0002002/0.161, allocations: 34.25 kB / 351.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.161, allocations: 8.375 kB / 351.9 MB, free: 2.309 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003351/0.1614, allocations: 131.5 kB / 352 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1614, allocations: 0 / 352 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1614, allocations: 0 / 352 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.1614, allocations: 0 / 352 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.099e-05/0.1615, allocations: 19.98 kB / 352 MB, free: 2.148 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.1617, allocations: 157.7 kB / 352.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.1619, allocations: 147.8 kB / 352.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.905e-05/0.162, allocations: 16.86 kB / 352.3 MB, free: 1.754 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.162, allocations: 7.938 kB / 352.3 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.162, allocations: 42.5 kB / 352.4 MB, free: 1.695 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.162, allocations: 0 / 352.4 MB, free: 1.695 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002576/0.1623, allocations: 73.67 kB / 352.4 MB, free: 1.617 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.1624, allocations: 55.41 kB / 352.5 MB, free: 1.551 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.281e-05/0.1625, allocations: 105.9 kB / 352.6 MB, free: 1.438 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.1625, allocations: 25.7 kB / 352.6 MB, free: 1.406 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.725e-05/0.1626, allocations: 96.06 kB / 352.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.1626, allocations: 7.844 kB / 352.7 MB, free: 1.301 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.671e-05/0.1626, allocations: 17.72 kB / 352.7 MB, free: 1.277 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1628, allocations: 322.8 kB / 353.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.543e-05/0.1628, allocations: 7.938 kB / 353.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-05/0.1628, allocations: 40.3 kB / 353.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.728e-05/0.1629, allocations: 48.22 kB / 353.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1629, allocations: 0 / 353.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001119/0.163, allocations: 81.47 kB / 353.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.163, allocations: 7.938 kB / 353.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1631, allocations: 0 / 353.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.1631, allocations: 4 kB / 353.2 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.409e-05/0.1631, allocations: 4 kB / 353.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.1631, allocations: 0 / 353.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.869e-05/0.1632, allocations: 4 kB / 353.2 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.1632, allocations: 0 / 353.2 MB, free: 0.7227 MB / 286.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 9.244e-05/0.1633, allocations: 129.5 kB / 353.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.1634, allocations: 65.56 kB / 353.4 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.1634, allocations: 7.969 kB / 353.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1635, allocations: 0 / 353.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1635, allocations: 0 / 353.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1635, allocations: 4.078 kB / 353.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.1636, allocations: 161.7 kB / 353.6 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1636, allocations: 448 / 353.6 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.544e-06/0.1636, allocations: 0 / 353.6 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1636, allocations: 7.938 kB / 353.6 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.1636, allocations: 8 kB / 353.6 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1636, allocations: 0 / 353.6 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1636, allocations: 0 / 353.6 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001409/0.1638, allocations: 92.95 kB / 353.7 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.1638, allocations: 85.05 kB / 353.8 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.1639, allocations: 4 kB / 353.8 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.959e-05/0.1639, allocations: 7.938 kB / 353.8 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-06/0.1639, allocations: 0 / 353.8 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.1639, allocations: 11.98 kB / 353.8 MB, free: 48 kB / 286.1 MB Notification: Performance of sorting global known variables: time 8.507e-05/0.164, allocations: 83.28 kB / 353.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.164, allocations: 0 / 353.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002059/0.1643, allocations: 4 kB / 353.9 MB, free: 15.96 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.0004848/0.1647, allocations: 0.6552 MB / 354.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.1649, allocations: 39.98 kB / 354.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1649, allocations: 0 / 354.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.202e-06/0.1649, allocations: 0 / 354.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006724/0.1656, allocations: 0.7219 MB / 355.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.1666, allocations: 1.221 MB / 356.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.1668, allocations: 0.6848 MB / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.3e-05/0.1669, allocations: 0 / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.92e-05/0.1669, allocations: 19.42 kB / 357.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1669, allocations: 0 / 357.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0127/0.1796, allocations: 1.507 MB / 358.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002214/0.1799, allocations: 224 kB / 359 MB, free: 10.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.932/2.112, allocations: 0 / 359 MB, free: 10.82 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches