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.001268/0.001268, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001287/0.001288, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.537/1.537, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 50.06 kB / 300.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1497, allocations: 49.45 MB / 349.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.004371/0.1541, allocations: 1.48 MB / 351.2 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003053/0.1545, allocations: 39.89 kB / 351.2 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1546, allocations: 0 / 351.2 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.435e-05/0.1547, allocations: 3.938 kB / 351.2 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.712e-05/0.1548, allocations: 0 / 351.2 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.1552, allocations: 23.97 kB / 351.2 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.1554, allocations: 39.86 kB / 351.3 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.1555, allocations: 16 kB / 351.3 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.67e-05/0.1556, allocations: 19.91 kB / 351.3 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.48e-05/0.1557, allocations: 19.92 kB / 351.3 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.1557, allocations: 0 / 351.3 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.543e-05/0.1558, allocations: 4 kB / 351.3 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.382e-05/0.1558, allocations: 11.94 kB / 351.4 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.965e-05/0.1559, allocations: 19.92 kB / 351.4 MB, free: 2.738 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.156, allocations: 39.88 kB / 351.4 MB, free: 2.699 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1561, allocations: 0 / 351.4 MB, free: 2.699 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1561, allocations: 4 kB / 351.4 MB, free: 2.695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1561, allocations: 0 / 351.4 MB, free: 2.695 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.000768/0.1569, allocations: 355.6 kB / 351.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.087e-05/0.157, allocations: 8.031 kB / 351.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.863e-05/0.157, allocations: 38.73 kB / 351.8 MB, free: 2.242 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.823e-05/0.1571, allocations: 8.844 kB / 351.8 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.1574, allocations: 184.2 kB / 352 MB, free: 2.016 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.0002659/0.1577, allocations: 46.17 kB / 352 MB, free: 1.965 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.1577, allocations: 4.375 kB / 352 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.1583, allocations: 127.6 kB / 352.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.1583, allocations: 0 / 352.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.1584, allocations: 0 / 352.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.1584, allocations: 3.984 kB / 352.2 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.1585, allocations: 19.94 kB / 352.2 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002365/0.1588, allocations: 161.7 kB / 352.4 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004297/0.1592, allocations: 139.8 kB / 352.5 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.584e-05/0.1593, allocations: 24.86 kB / 352.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.1593, allocations: 0 / 352.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.1594, allocations: 38.5 kB / 352.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.804e-06/0.1594, allocations: 0 / 352.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003592/0.1598, allocations: 77.61 kB / 352.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/0.1599, allocations: 55.41 kB / 352.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.16, allocations: 109.8 kB / 352.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.16, allocations: 29.7 kB / 352.8 MB, free: 1.055 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1602, allocations: 80.14 kB / 352.9 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.1602, allocations: 11.84 kB / 352.9 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.1603, allocations: 21.72 kB / 352.9 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002484/0.1605, allocations: 314.8 kB / 353.2 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.297e-05/0.1606, allocations: 12 kB / 353.2 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.468e-05/0.1607, allocations: 48.2 kB / 353.3 MB, free: 0.543 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.1608, allocations: 44.23 kB / 353.3 MB, free: 496 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1608, allocations: 0 / 353.3 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001787/0.161, allocations: 73.53 kB / 353.4 MB, free: 416 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.1611, allocations: 11.94 kB / 353.4 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.1611, allocations: 0 / 353.4 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.1611, allocations: 4 kB / 353.4 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.964e-05/0.1612, allocations: 11.94 kB / 353.4 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1612, allocations: 0 / 353.4 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.272e-05/0.1613, allocations: 4 kB / 353.4 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.1613, allocations: 0 / 353.4 MB, free: 384 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.0001722/0.1615, allocations: 122.4 kB / 353.6 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.1617, allocations: 69.56 kB / 353.6 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.884e-05/0.1617, allocations: 7.969 kB / 353.6 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1617, allocations: 4 kB / 353.6 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.1618, allocations: 0 / 353.6 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1618, allocations: 0 / 353.6 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.162, allocations: 157.7 kB / 353.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.162, allocations: 3.938 kB / 353.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.718e-06/0.162, allocations: 0 / 353.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.162, allocations: 3.938 kB / 353.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.1621, allocations: 12 kB / 353.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1621, allocations: 0 / 353.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1621, allocations: 0 / 353.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.1624, allocations: 93.09 kB / 353.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.633e-05/0.1624, allocations: 85.05 kB / 354 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.1625, allocations: 0 / 354 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.264e-05/0.1626, allocations: 11.94 kB / 354 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.125e-05/0.1626, allocations: 3.938 kB / 354 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.1627, allocations: 7.984 kB / 354 MB, free: 15.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.681e-05/0.1628, allocations: 83.28 kB / 354.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1628, allocations: 0 / 354.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003602/0.1631, allocations: 8 kB / 354.1 MB, free: 15.61 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.0009297/0.1641, allocations: 0.6514 MB / 354.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002484/0.1644, allocations: 40.17 kB / 354.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.1644, allocations: 0 / 354.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.463e-06/0.1644, allocations: 0 / 354.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.166, allocations: 0.722 MB / 355.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.1679, allocations: 1.226 MB / 356.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006291/0.1686, allocations: 0.6885 MB / 357.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.527e-05/0.1686, allocations: 3.984 kB / 357.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.175e-05/0.1687, allocations: 15.44 kB / 357.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of SimCode: time 1.313e-06/0.1687, allocations: 0 / 357.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01868/0.1874, allocations: 1.568 MB / 359 MB, free: 10.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003873/0.1879, allocations: 216.3 kB / 359.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.104, allocations: 0 / 359.2 MB, free: 10.43 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