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.003126/0.003132, allocations: 181 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.359/2.359, allocations: 205.3 MB / 213.8 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 90.58 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1177/0.1177, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.591e-05, allocations: 7.938 kB / 379 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.3607, allocations: 50.35 MB / 429.4 MB, free: 18.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.149/0.5097, allocations: 76.67 MB / 0.4942 GB, free: 5.555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.5101, allocations: 67.97 kB / 0.4943 GB, free: 5.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0035/0.5136, allocations: 0.8582 MB / 0.4951 GB, free: 4.633 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.5137, allocations: 4 kB / 0.4951 GB, free: 4.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.5137, allocations: 0 / 0.4951 GB, free: 4.629 MB / 346.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.0004351/0.5141, allocations: 338.5 kB / 0.4954 GB, free: 4.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.5142, allocations: 12.03 kB / 0.4954 GB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.646e-05/0.5143, allocations: 3.984 kB / 0.4955 GB, free: 4.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.5145, allocations: 182.9 kB / 0.4956 GB, free: 4.02 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.5147, allocations: 33.08 kB / 0.4957 GB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.5147, allocations: 11.89 kB / 0.4957 GB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001022/0.5149, allocations: 15.98 kB / 0.4957 GB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.5152, allocations: 115.2 kB / 0.4958 GB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.5152, allocations: 0 / 0.4958 GB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.5152, allocations: 0 / 0.4958 GB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.5152, allocations: 8 kB / 0.4958 GB, free: 3.824 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001705/0.5154, allocations: 134.2 kB / 0.4959 GB, free: 3.656 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.5157, allocations: 135.8 kB / 0.4961 GB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.069e-05/0.5157, allocations: 24.92 kB / 0.4961 GB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.159e-05/0.5158, allocations: 0 / 0.4961 GB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.5158, allocations: 38.52 kB / 0.4961 GB, free: 3.422 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.783e-06/0.5158, allocations: 0 / 0.4961 GB, free: 3.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.000198/0.516, allocations: 57.67 kB / 0.4962 GB, free: 3.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.5161, allocations: 51.41 kB / 0.4962 GB, free: 3.297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.912e-05/0.5162, allocations: 101 kB / 0.4963 GB, free: 3.191 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.5162, allocations: 29.7 kB / 0.4963 GB, free: 3.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.897e-05/0.5163, allocations: 84.14 kB / 0.4964 GB, free: 3.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.5163, allocations: 7.906 kB / 0.4964 GB, free: 3.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.5163, allocations: 0 / 0.4964 GB, free: 3.062 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.5165, allocations: 322.8 kB / 0.4967 GB, free: 2.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.068e-05/0.5165, allocations: 4 kB / 0.4967 GB, free: 2.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.603e-05/0.5166, allocations: 36.3 kB / 0.4968 GB, free: 2.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.772e-05/0.5166, allocations: 15.94 kB / 0.4968 GB, free: 2.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5167, allocations: 0 / 0.4968 GB, free: 2.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000139/0.5168, allocations: 61.62 kB / 0.4969 GB, free: 2.602 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.5168, allocations: 4 kB / 0.4969 GB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.5169, allocations: 4.156 kB / 0.4969 GB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.5169, allocations: 7.953 kB / 0.4969 GB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.621e-05/0.517, allocations: 7.984 kB / 0.4969 GB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.517, allocations: 4 kB / 0.4969 GB, free: 2.574 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.22e-05/0.517, allocations: 7.844 kB / 0.4969 GB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.5171, allocations: 7.938 kB / 0.4969 GB, free: 2.559 MB / 346.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 () * 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 9.123e-05/0.5172, allocations: 104.9 kB / 0.497 GB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001255/0.5173, allocations: 57.69 kB / 0.4971 GB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/0.5173, allocations: 3.953 kB / 0.4971 GB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.5174, allocations: 16.41 kB / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.5174, allocations: 0 / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.5174, allocations: 0 / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.5174, allocations: 0 / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.5175, allocations: 134.2 kB / 0.4972 GB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.5175, allocations: 0 / 0.4972 GB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.177e-05/0.5176, allocations: 4.25 kB / 0.4972 GB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.5176, allocations: 0 / 0.4972 GB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.5176, allocations: 7.938 kB / 0.4972 GB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.859e-06/0.5176, allocations: 11.94 kB / 0.4972 GB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5176, allocations: 0 / 0.4972 GB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000153/0.5178, allocations: 81.03 kB / 0.4973 GB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.465e-05/0.5179, allocations: 77.11 kB / 0.4974 GB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.5179, allocations: 4 kB / 0.4974 GB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.171e-05/0.518, allocations: 4 kB / 0.4974 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.973e-06/0.518, allocations: 3.953 kB / 0.4974 GB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.518, allocations: 3.984 kB / 0.4974 GB, free: 1.969 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.5181, allocations: 83.28 kB / 0.4975 GB, free: 1.887 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5181, allocations: 0 / 0.4975 GB, free: 1.887 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003088/0.5184, allocations: 12 kB / 0.4975 GB, free: 1.875 MB / 346.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 () * 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.0005958/0.519, allocations: 0.6319 MB / 0.4981 GB, free: 1.211 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001363/0.5192, allocations: 31.98 kB / 0.4981 GB, free: 1.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5192, allocations: 7.875 kB / 0.4981 GB, free: 1.172 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.052e-06/0.5192, allocations: 384 / 0.4981 GB, free: 1.172 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008303/0.5201, allocations: 0.7074 MB / 0.4988 GB, free: 452 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004316/0.5205, allocations: 109.5 kB / 0.4989 GB, free: 304 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.5209, allocations: 0.6884 MB / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.498e-05/0.5209, allocations: 4.188 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.445e-05/0.521, allocations: 19.48 kB / 0.4996 GB, free: 15.56 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.521, allocations: 4 kB / 0.4996 GB, free: 15.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03844/0.5595, allocations: 1.106 MB / 0.5007 GB, free: 14.45 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003077/0.5598, allocations: 164.8 kB / 0.5009 GB, free: 14.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.487/3.047, allocations: 0 / 0.5009 GB, free: 14.27 MB / 362.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