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.000936/0.000936, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001009/0.001009, allocations: 183.7 kB / 17.2 MB, free: 5.914 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.551/1.551, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003443, allocations: 6.594 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1521, allocations: 50.43 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002934/0.1552, allocations: 1.142 MB / 352.4 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003411/0.1555, allocations: 39.84 kB / 352.4 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1557, allocations: 0 / 352.4 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.481e-05/0.1557, allocations: 3.938 kB / 352.4 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.461e-05/0.1558, allocations: 4 kB / 352.4 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.1562, allocations: 19.97 kB / 352.4 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.1564, allocations: 23.97 kB / 352.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.1565, allocations: 12 kB / 352.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.1567, allocations: 19.91 kB / 352.5 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.741e-05/0.1568, allocations: 15.92 kB / 352.5 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.02e-05/0.1568, allocations: 4 kB / 352.5 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.867e-05/0.1568, allocations: 0 / 352.5 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.786e-05/0.1569, allocations: 4 kB / 352.5 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.289e-05/0.157, allocations: 33.64 kB / 352.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.1571, allocations: 27.92 kB / 352.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1571, allocations: 0 / 352.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1571, allocations: 0 / 352.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.1571, allocations: 0 / 352.6 MB, free: 10.26 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.0007233/0.1579, allocations: 347.2 kB / 352.9 MB, free: 9.875 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.647e-05/0.158, allocations: 8.031 kB / 352.9 MB, free: 9.867 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.174e-05/0.1581, allocations: 34.56 kB / 353 MB, free: 9.824 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.581e-05/0.1581, allocations: 11.86 kB / 353 MB, free: 9.812 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000279/0.1584, allocations: 171.1 kB / 353.1 MB, free: 9.605 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.0001969/0.1586, allocations: 37.69 kB / 353.2 MB, free: 9.562 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.1587, allocations: 7.938 kB / 353.2 MB, free: 9.555 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.1591, allocations: 131.2 kB / 353.3 MB, free: 9.414 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1591, allocations: 0 / 353.3 MB, free: 9.414 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.1592, allocations: 7.984 kB / 353.3 MB, free: 9.406 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.1592, allocations: 3.953 kB / 353.3 MB, free: 9.402 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.412e-05/0.1593, allocations: 12 kB / 353.3 MB, free: 9.391 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002484/0.1595, allocations: 161.6 kB / 353.5 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00032/0.1599, allocations: 143.7 kB / 353.6 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.1599, allocations: 4 kB / 353.6 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1599, allocations: 34.56 kB / 353.7 MB, free: 8.969 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.523e-06/0.16, allocations: 0 / 353.7 MB, free: 8.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003735/0.1603, allocations: 158.8 kB / 353.8 MB, free: 8.789 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.303e-05/0.1604, allocations: 63.33 kB / 353.9 MB, free: 8.715 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.1606, allocations: 101.8 kB / 354 MB, free: 8.605 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.1606, allocations: 33.7 kB / 354 MB, free: 8.566 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.525e-05/0.1607, allocations: 88.12 kB / 354.1 MB, free: 8.477 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.1607, allocations: 0 / 354.1 MB, free: 8.477 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-06/0.1607, allocations: 4 kB / 354.1 MB, free: 8.473 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.1609, allocations: 314.8 kB / 354.4 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.461e-05/0.1609, allocations: 11.98 kB / 354.4 MB, free: 8.145 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.997e-05/0.161, allocations: 40.28 kB / 354.5 MB, free: 8.09 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.6e-05/0.161, allocations: 12 kB / 354.5 MB, free: 8.078 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1611, allocations: 0 / 354.5 MB, free: 8.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001507/0.1612, allocations: 77.47 kB / 354.6 MB, free: 7.996 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1612, allocations: 4 kB / 354.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1613, allocations: 0 / 354.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.1613, allocations: 4 kB / 354.6 MB, free: 7.988 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.703e-05/0.1614, allocations: 16.08 kB / 354.6 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1614, allocations: 0 / 354.6 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.446e-05/0.1614, allocations: 11.89 kB / 354.6 MB, free: 7.961 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.1614, allocations: 0 / 354.6 MB, free: 7.961 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 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001336/0.1616, allocations: 117.8 kB / 354.7 MB, free: 7.836 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.1617, allocations: 57.69 kB / 354.8 MB, free: 7.773 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.742e-05/0.1618, allocations: 11.97 kB / 354.8 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1618, allocations: 0 / 354.8 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1618, allocations: 0 / 354.8 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1618, allocations: 4 kB / 354.8 MB, free: 7.754 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001774/0.162, allocations: 165.5 kB / 354.9 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.162, allocations: 3.938 kB / 354.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.007e-05/0.162, allocations: 3.984 kB / 355 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.738e-06/0.162, allocations: 4 kB / 355 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.1621, allocations: 448 / 355 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1621, allocations: 3.938 kB / 355 MB, free: 7.527 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1621, allocations: 3.938 kB / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.1623, allocations: 93.08 kB / 355.1 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.1623, allocations: 81.11 kB / 355.1 MB, free: 7.316 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.1624, allocations: 4 kB / 355.1 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.78e-05/0.1624, allocations: 7.984 kB / 355.1 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-06/0.1625, allocations: 0 / 355.1 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.1625, allocations: 0 / 355.1 MB, free: 7.305 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.54e-05/0.1625, allocations: 87.28 kB / 355.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1626, allocations: 0 / 355.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.1629, allocations: 4 kB / 355.2 MB, free: 7.215 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006561/0.1636, allocations: 0.6553 MB / 355.9 MB, free: 6.531 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001753/0.1638, allocations: 35.92 kB / 355.9 MB, free: 6.496 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1638, allocations: 0 / 355.9 MB, free: 6.496 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.42e-07/0.1638, allocations: 0 / 355.9 MB, free: 6.496 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009077/0.1647, allocations: 0.7279 MB / 356.7 MB, free: 5.746 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.1659, allocations: 1.008 MB / 357.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.1664, allocations: 0.6887 MB / 358.4 MB, free: 3.957 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.814e-05/0.1664, allocations: 8.172 kB / 358.4 MB, free: 3.945 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.1665, allocations: 15.44 kB / 358.4 MB, free: 3.93 MB / 286.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1665, allocations: 0 / 358.4 MB, free: 3.93 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01753/0.184, allocations: 1.426 MB / 359.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003204/0.1844, allocations: 198.3 kB / 360 MB, free: 2.441 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.098, allocations: 11.62 kB / 360 MB, free: 2.434 MB / 286.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat