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.0009646/0.0009648, allocations: 86.11 kB / 16.31 MB, free: 6.414 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.001326/0.001326, allocations: 183.7 kB / 17.21 MB, free: 6.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.484/1.484, allocations: 223.2 MB / 241.2 MB, free: 340 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004318/0.0004321, allocations: 4 kB / 300.9 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1421, allocations: 50.42 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002104/0.1443, allocations: 1.131 MB / 352.5 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002402/0.1446, allocations: 51.81 kB / 352.5 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.094e-05/0.1447, allocations: 4 kB / 352.5 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.1447, allocations: 0 / 352.5 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.179e-05/0.1448, allocations: 3.938 kB / 352.5 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.1451, allocations: 23.97 kB / 352.6 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.1452, allocations: 39.86 kB / 352.6 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.1453, allocations: 7.984 kB / 352.6 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.169e-05/0.1454, allocations: 11.98 kB / 352.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.939e-05/0.1455, allocations: 15.92 kB / 352.6 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.1455, allocations: 8 kB / 352.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.184e-05/0.1455, allocations: 0 / 352.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.593e-05/0.1455, allocations: 11.92 kB / 352.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.877e-05/0.1456, allocations: 29.7 kB / 352.7 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.71e-05/0.1457, allocations: 23.94 kB / 352.7 MB, free: 2.523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1457, allocations: 0 / 352.7 MB, free: 2.523 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1457, allocations: 0 / 352.7 MB, free: 2.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1457, allocations: 0 / 352.7 MB, free: 2.523 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.0005505/0.1463, allocations: 351.5 kB / 353 MB, free: 2.133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.1463, allocations: 8.031 kB / 353 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.488e-05/0.1464, allocations: 38.56 kB / 353.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.1465, allocations: 11.86 kB / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.1467, allocations: 183 kB / 353.3 MB, free: 1.848 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.0001614/0.1469, allocations: 33.69 kB / 353.3 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.1469, allocations: 4 kB / 353.3 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000377/0.1473, allocations: 119.3 kB / 353.4 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1473, allocations: 4 kB / 353.4 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.1473, allocations: 4 kB / 353.4 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1473, allocations: 7.938 kB / 353.4 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.711e-05/0.1474, allocations: 19.92 kB / 353.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001856/0.1476, allocations: 157.7 kB / 353.6 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.1479, allocations: 139.8 kB / 353.8 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.458e-05/0.148, allocations: 24.84 kB / 353.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.148, allocations: 7.938 kB / 353.8 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.148, allocations: 34.5 kB / 353.8 MB, free: 1.195 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.553e-06/0.1481, allocations: 0 / 353.8 MB, free: 1.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002778/0.1483, allocations: 77.59 kB / 353.9 MB, free: 1.113 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.1484, allocations: 63.36 kB / 354 MB, free: 1.039 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.903e-05/0.1485, allocations: 105.8 kB / 354.1 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.1486, allocations: 25.7 kB / 354.1 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.812e-05/0.1486, allocations: 84.14 kB / 354.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.1486, allocations: 4 kB / 354.2 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.1487, allocations: 3.938 kB / 354.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1488, allocations: 322.8 kB / 354.5 MB, free: 488 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.985e-05/0.1488, allocations: 4 kB / 354.5 MB, free: 484 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.828e-05/0.1489, allocations: 44.22 kB / 354.5 MB, free: 424 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.971e-05/0.1489, allocations: 12 kB / 354.5 MB, free: 412 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.149, allocations: 4 kB / 354.6 MB, free: 408 kB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001486/0.1491, allocations: 73.47 kB / 354.6 MB, free: 328 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1491, allocations: 4 kB / 354.6 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1492, allocations: 0 / 354.6 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1492, allocations: 4 kB / 354.6 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.288e-05/0.1492, allocations: 8.156 kB / 354.6 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.1493, allocations: 160 / 354.6 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.037e-05/0.1493, allocations: 11.95 kB / 354.7 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.1493, allocations: 7.984 kB / 354.7 MB, free: 292 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 (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.0001148/0.1494, allocations: 117.8 kB / 354.8 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.1496, allocations: 61.97 kB / 354.8 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.862e-05/0.1496, allocations: 11.97 kB / 354.8 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1496, allocations: 0 / 354.8 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.1496, allocations: 4 kB / 354.9 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1497, allocations: 4 kB / 354.9 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.1498, allocations: 161.6 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1498, allocations: 0 / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.494e-06/0.1498, allocations: 0 / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1499, allocations: 4 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.1499, allocations: 4 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1499, allocations: 0 / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1499, allocations: 0 / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000186/0.1501, allocations: 97 kB / 355.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.638e-05/0.1501, allocations: 85.02 kB / 355.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.1502, allocations: 0 / 355.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.616e-05/0.1502, allocations: 8 kB / 355.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.522e-06/0.1502, allocations: 0 / 355.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.1503, allocations: 11.92 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.491e-05/0.1503, allocations: 83.22 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1503, allocations: 0 / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.1506, allocations: 8 kB / 355.3 MB, free: 15.53 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 (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.000643/0.1513, allocations: 0.6515 MB / 356 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001383/0.1514, allocations: 31.92 kB / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1515, allocations: 0 / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.51e-07/0.1515, allocations: 0 / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009071/0.1524, allocations: 0.7303 MB / 356.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008191/0.1532, allocations: 430.7 kB / 357.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.1535, allocations: 0.6876 MB / 357.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.841e-05/0.1536, allocations: 192 / 357.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.069e-05/0.1536, allocations: 19.42 kB / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1537, allocations: 0 / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.1688, allocations: 1.428 MB / 359.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000256/0.1691, allocations: 211.4 kB / 359.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.109, allocations: 0 / 359.5 MB, free: 11.36 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/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