Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001859/0.001859, allocations: 175.3 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008364/0.0008365, allocations: 102.2 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06687/0.06687, allocations: 12.6 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000431/0.0004311, allocations: 14.97 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08559/0.08604, allocations: 50.39 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001219/0.0873, allocations: 1.137 MB / 443.6 MB, free: 9.703 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001714/0.08748, allocations: 52.2 kB / 443.7 MB, free: 9.652 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.78e-05/0.08754, allocations: 0 / 443.7 MB, free: 9.652 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.29e-05/0.08757, allocations: 3.938 kB / 443.7 MB, free: 9.648 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.58e-05/0.08762, allocations: 0 / 443.7 MB, free: 9.648 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002011/0.08782, allocations: 27.91 kB / 443.7 MB, free: 9.621 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.455e-05/0.0879, allocations: 43.84 kB / 443.8 MB, free: 9.578 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.105e-05/0.08797, allocations: 4 kB / 443.8 MB, free: 9.574 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.344e-05/0.08802, allocations: 15.98 kB / 443.8 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.709e-05/0.08807, allocations: 19.91 kB / 443.8 MB, free: 9.539 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.08809, allocations: 0 / 443.8 MB, free: 9.539 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.128e-05/0.0881, allocations: 4 kB / 443.8 MB, free: 9.535 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.411e-05/0.08812, allocations: 7.938 kB / 443.8 MB, free: 9.527 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.329e-05/0.08815, allocations: 29.7 kB / 443.8 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 5.649e-05/0.08821, allocations: 24.52 kB / 443.9 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.08822, allocations: 0 / 443.9 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.08823, allocations: 0 / 443.9 MB, free: 9.469 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.08824, allocations: 0 / 443.9 MB, free: 9.469 MB / 282.7 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.0003169/0.08856, allocations: 351.5 kB / 444.2 MB, free: 9.078 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.0886, allocations: 16.03 kB / 444.2 MB, free: 9.062 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.19e-05/0.08864, allocations: 34.56 kB / 444.3 MB, free: 9.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.724e-05/0.08867, allocations: 7.906 kB / 444.3 MB, free: 9.012 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.0888, allocations: 171 kB / 444.4 MB, free: 8.805 MB / 282.7 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.0001181/0.08892, allocations: 49.38 kB / 444.5 MB, free: 8.754 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.08894, allocations: 4 kB / 444.5 MB, free: 8.75 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.08919, allocations: 131.2 kB / 444.6 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.0892, allocations: 0 / 444.6 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.08922, allocations: 0 / 444.6 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.08923, allocations: 0 / 444.6 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.016e-05/0.08928, allocations: 19.98 kB / 444.6 MB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.151e-05/0.08938, allocations: 161.7 kB / 444.8 MB, free: 8.383 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.08953, allocations: 135.8 kB / 444.9 MB, free: 8.223 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.351e-05/0.08959, allocations: 28.86 kB / 445 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.08961, allocations: 11.92 kB / 445 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.249e-05/0.08962, allocations: 30.56 kB / 445 MB, free: 8.141 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.08963, allocations: 0 / 445 MB, free: 8.141 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001691/0.0898, allocations: 73.59 kB / 445.1 MB, free: 8.062 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.08985, allocations: 55.41 kB / 445.1 MB, free: 7.996 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.867e-05/0.08991, allocations: 105.8 kB / 445.2 MB, free: 7.883 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.08992, allocations: 33.64 kB / 445.3 MB, free: 7.844 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.78e-05/0.08994, allocations: 84.14 kB / 445.3 MB, free: 7.758 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.041e-05/0.08996, allocations: 11.91 kB / 445.3 MB, free: 7.746 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.08997, allocations: 0 / 445.3 MB, free: 7.746 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.031e-05/0.09001, allocations: 314.8 kB / 445.7 MB, free: 7.43 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.337e-05/0.09003, allocations: 11.94 kB / 445.7 MB, free: 7.418 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.599e-05/0.09006, allocations: 40.28 kB / 445.7 MB, free: 7.363 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.442e-05/0.09009, allocations: 19.94 kB / 445.7 MB, free: 7.344 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.0901, allocations: 0 / 445.7 MB, free: 7.344 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.686e-05/0.09018, allocations: 73.52 kB / 445.8 MB, free: 7.266 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.0902, allocations: 8 kB / 445.8 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.09021, allocations: 448 / 445.8 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.09023, allocations: 4.156 kB / 445.8 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.011e-05/0.09027, allocations: 4 kB / 445.8 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.09028, allocations: 4 kB / 445.8 MB, free: 7.246 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.375e-05/0.09031, allocations: 4 kB / 445.8 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.09032, allocations: 4 kB / 445.8 MB, free: 7.238 MB / 282.7 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 5.412e-05/0.09038, allocations: 129.5 kB / 446 MB, free: 7.102 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.644e-05/0.09046, allocations: 61.56 kB / 446 MB, free: 7.035 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.969e-05/0.09049, allocations: 11.95 kB / 446 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.0905, allocations: 0 / 446 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.09051, allocations: 4 kB / 446 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.09051, allocations: 0 / 446 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.492e-05/0.09057, allocations: 161.7 kB / 446.2 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.09058, allocations: 0 / 446.2 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.502e-06/0.09059, allocations: 0 / 446.2 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.0906, allocations: 0 / 446.2 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.09061, allocations: 3.953 kB / 446.2 MB, free: 6.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.09061, allocations: 0 / 446.2 MB, free: 6.805 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.09062, allocations: 4 kB / 446.2 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.09074, allocations: 93.05 kB / 446.3 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.889e-05/0.09077, allocations: 89.03 kB / 446.4 MB, free: 6.586 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.09079, allocations: 11.98 kB / 446.4 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.29e-05/0.09084, allocations: 3.953 kB / 446.4 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-06/0.09085, allocations: 0 / 446.4 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.09086, allocations: 4 kB / 446.4 MB, free: 6.566 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.261e-05/0.09089, allocations: 91.27 kB / 446.5 MB, free: 6.477 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09089, allocations: 0 / 446.5 MB, free: 6.477 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001809/0.09108, allocations: 12 kB / 446.5 MB, free: 6.465 MB / 282.7 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.000295/0.09138, allocations: 0.6359 MB / 447.1 MB, free: 5.801 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.997e-05/0.09148, allocations: 35.92 kB / 447.2 MB, free: 5.766 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.09149, allocations: 0 / 447.2 MB, free: 5.766 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.0915, allocations: 0 / 447.2 MB, free: 5.766 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.09197, allocations: 0.7339 MB / 447.9 MB, free: 5.008 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004376/0.09242, allocations: 414.4 kB / 448.3 MB, free: 4.539 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.09254, allocations: 0.6848 MB / 449 MB, free: 3.828 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.103e-05/0.09257, allocations: 192 / 449 MB, free: 3.824 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.898e-05/0.0926, allocations: 15.38 kB / 449 MB, free: 3.812 MB / 282.7 MB Notification: Performance of SimCode: time 2.41e-07/0.09261, allocations: 0 / 449 MB, free: 3.812 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0109/0.1035, allocations: 1.462 MB / 450.5 MB, free: 2.359 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001378/0.1037, allocations: 214.3 kB / 450.7 MB, free: 2.121 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/1.675, allocations: 7.938 kB / 450.7 MB, free: 2.113 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat