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.001351/0.001351, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001346/0.001345, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.501/1.501, allocations: 222.9 MB / 241.5 MB, free: 15.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 39.22 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1461, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.004302/0.1505, allocations: 1.429 MB / 351.6 MB, free: 2.887 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002911/0.1508, allocations: 39.84 kB / 351.6 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.151, allocations: 4 kB / 351.6 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.07e-05/0.151, allocations: 0 / 351.6 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.275e-05/0.1511, allocations: 7.938 kB / 351.6 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003281/0.1515, allocations: 29.78 kB / 351.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.1516, allocations: 39.91 kB / 351.7 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.1517, allocations: 8 kB / 351.7 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.178e-05/0.1518, allocations: 23.91 kB / 351.7 MB, free: 2.738 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.062e-05/0.1519, allocations: 15.92 kB / 351.8 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.1519, allocations: 4 kB / 351.8 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.361e-05/0.1519, allocations: 4 kB / 351.8 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.896e-05/0.1519, allocations: 7.938 kB / 351.8 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.37e-05/0.152, allocations: 23.92 kB / 351.8 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.1522, allocations: 43.88 kB / 351.8 MB, free: 2.641 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1522, allocations: 0 / 351.8 MB, free: 2.641 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1522, allocations: 0 / 351.8 MB, free: 2.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1522, allocations: 0 / 351.8 MB, free: 2.641 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.0005851/0.1528, allocations: 351.6 kB / 352.2 MB, free: 2.246 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.1529, allocations: 12.03 kB / 352.2 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.153, allocations: 30.75 kB / 352.2 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.923e-05/0.1531, allocations: 8.844 kB / 352.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002563/0.1534, allocations: 184.2 kB / 352.4 MB, free: 1.969 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.000208/0.1536, allocations: 42.25 kB / 352.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.1536, allocations: 4.375 kB / 352.5 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003662/0.154, allocations: 127.6 kB / 352.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.154, allocations: 0 / 352.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.1541, allocations: 7.938 kB / 352.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1541, allocations: 0 / 352.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.004e-05/0.1542, allocations: 15.98 kB / 352.6 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002292/0.1544, allocations: 165.7 kB / 352.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.1547, allocations: 135.8 kB / 352.9 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.618e-05/0.1548, allocations: 28.84 kB / 352.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.1548, allocations: 0 / 352.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.1549, allocations: 42.44 kB / 353 MB, free: 1.305 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.643e-06/0.1549, allocations: 7.938 kB / 353 MB, free: 1.297 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002523/0.1551, allocations: 69.69 kB / 353 MB, free: 1.223 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.1552, allocations: 59.41 kB / 353.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.701e-05/0.1553, allocations: 105.8 kB / 353.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.1553, allocations: 29.7 kB / 353.2 MB, free: 1.004 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.041e-05/0.1554, allocations: 80.14 kB / 353.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.1554, allocations: 11.83 kB / 353.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.1554, allocations: 21.72 kB / 353.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1556, allocations: 318.8 kB / 353.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.901e-05/0.1556, allocations: 7.984 kB / 353.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.275e-05/0.1556, allocations: 40.23 kB / 353.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.023e-05/0.1557, allocations: 56.22 kB / 353.8 MB, free: 440 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1557, allocations: 0 / 353.8 MB, free: 440 kB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001005/0.1558, allocations: 69.53 kB / 353.8 MB, free: 364 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1559, allocations: 7.938 kB / 353.8 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1559, allocations: 7.938 kB / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1559, allocations: 0 / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.777e-05/0.1559, allocations: 8.156 kB / 353.8 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.1559, allocations: 4 kB / 353.9 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.632e-05/0.156, allocations: 4 kB / 353.9 MB, free: 332 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.156, allocations: 4 kB / 353.9 MB, free: 328 kB / 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 0.0001933/0.1562, allocations: 113.8 kB / 354 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.87e-05/0.1563, allocations: 65.56 kB / 354 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.001e-05/0.1563, allocations: 7.969 kB / 354 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.1563, allocations: 3.984 kB / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1564, allocations: 0 / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1564, allocations: 4 kB / 354.1 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.1565, allocations: 157.7 kB / 354.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1566, allocations: 4.438 kB / 354.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.452e-06/0.1566, allocations: 0 / 354.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1566, allocations: 3.938 kB / 354.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.1566, allocations: 4 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1566, allocations: 0 / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1566, allocations: 0 / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001476/0.1568, allocations: 105 kB / 354.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.645e-05/0.1568, allocations: 85.03 kB / 354.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.1568, allocations: 4 kB / 354.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.569e-05/0.1569, allocations: 3.938 kB / 354.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-06/0.1569, allocations: 0 / 354.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.1569, allocations: 8 kB / 354.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.1571, allocations: 83.27 kB / 354.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1571, allocations: 0 / 354.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002597/0.1574, allocations: 15.94 kB / 354.5 MB, free: 15.56 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.0006215/0.158, allocations: 0.6514 MB / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.1582, allocations: 35.92 kB / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1582, allocations: 0 / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.533e-06/0.1582, allocations: 0 / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008689/0.1591, allocations: 0.7293 MB / 355.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.1603, allocations: 1.227 MB / 357.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005311/0.1609, allocations: 0.6846 MB / 357.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.942e-05/0.1609, allocations: 0 / 357.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.161, allocations: 18.44 kB / 357.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.161, allocations: 0 / 357.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.1825, allocations: 1.646 MB / 359.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.823/10.01, allocations: 7.094 kB / 359.5 MB, free: 10.5 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