Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_cpp_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.0008244/0.0008244, allocations: 173 kB / 16.76 MB, free: 4.934 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.123/1.123, allocations: 205.4 MB / 222.9 MB, free: 9.004 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.0006866/0.0006866, allocations: 94.36 kB / 271.3 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05509/0.05509, allocations: 12.18 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003557, allocations: 12 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06028/0.06065, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001038/0.06172, allocations: 1.14 MB / 443.6 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001459/0.06188, allocations: 43.84 kB / 443.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.426e-05/0.06194, allocations: 0 / 443.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.161e-05/0.06196, allocations: 0 / 443.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.764e-05/0.06201, allocations: 7.922 kB / 443.7 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001906/0.06221, allocations: 23.97 kB / 443.7 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.902e-05/0.06228, allocations: 35.92 kB / 443.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.054e-05/0.06235, allocations: 11.97 kB / 443.8 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.779e-05/0.0624, allocations: 15.92 kB / 443.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.275e-05/0.06243, allocations: 19.92 kB / 443.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.06245, allocations: 0 / 443.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.318e-06/0.06247, allocations: 8 kB / 443.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.34e-05/0.06249, allocations: 0 / 443.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.146e-05/0.06252, allocations: 45.56 kB / 443.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.972e-05/0.06258, allocations: 27.95 kB / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.06259, allocations: 0 / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.06259, allocations: 0 / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.464e-06/0.0626, allocations: 0 / 443.9 MB, free: 15.16 MB / 298.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.0002736/0.06288, allocations: 343.7 kB / 444.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.06292, allocations: 12.03 kB / 444.2 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.278e-05/0.06294, allocations: 30.75 kB / 444.2 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.567e-05/0.06297, allocations: 16.83 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.06308, allocations: 172.4 kB / 444.4 MB, free: 14.5 MB / 298.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 9.491e-05/0.06318, allocations: 38.25 kB / 444.5 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.0632, allocations: 4.375 kB / 444.5 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.06343, allocations: 131.5 kB / 444.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.06344, allocations: 0 / 444.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-06/0.06346, allocations: 8 kB / 444.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.06347, allocations: 0 / 444.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.552e-05/0.06352, allocations: 15.98 kB / 444.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.989e-05/0.0636, allocations: 165.6 kB / 444.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.06375, allocations: 143.7 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.1e-05/0.06379, allocations: 28.84 kB / 445 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.06381, allocations: 0 / 445 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.026e-05/0.06383, allocations: 38.5 kB / 445 MB, free: 13.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 9.31e-07/0.06383, allocations: 0 / 445 MB, free: 13.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001492/0.06399, allocations: 73.62 kB / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.06403, allocations: 59.39 kB / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.152e-05/0.06408, allocations: 101.9 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.06409, allocations: 25.7 kB / 445.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.603e-05/0.06411, allocations: 96.06 kB / 445.3 MB, free: 13.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.966e-06/0.06412, allocations: 7.906 kB / 445.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-06/0.06413, allocations: 0 / 445.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.346e-05/0.06417, allocations: 318.8 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.333e-05/0.06419, allocations: 11.98 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.178e-05/0.06421, allocations: 36.28 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.517e-05/0.06425, allocations: 48.23 kB / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.06426, allocations: 0 / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.42e-05/0.06434, allocations: 69.56 kB / 445.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.06436, allocations: 11.94 kB / 445.8 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.06437, allocations: 8.141 kB / 445.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.06438, allocations: 0 / 445.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.44e-05/0.06442, allocations: 8 kB / 445.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.06443, allocations: 3.938 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.537e-05/0.06446, allocations: 7.906 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.06447, allocations: 4 kB / 445.9 MB, free: 12.87 MB / 298.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 4.265e-05/0.06452, allocations: 118.5 kB / 446 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.579e-05/0.0646, allocations: 61.62 kB / 446 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.5e-05/0.06462, allocations: 7.969 kB / 446 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.06463, allocations: 4 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.06463, allocations: 96 / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.06464, allocations: 7.984 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.783e-05/0.06469, allocations: 161.6 kB / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.0647, allocations: 0 / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.542e-06/0.06471, allocations: 4.375 kB / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.06472, allocations: 3.938 kB / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.06473, allocations: 0 / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.06473, allocations: 8 kB / 446.2 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.06474, allocations: 0 / 446.2 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.912e-05/0.06483, allocations: 93.03 kB / 446.3 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.596e-05/0.06486, allocations: 88.92 kB / 446.4 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.06488, allocations: 7.984 kB / 446.4 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.833e-05/0.06492, allocations: 3.938 kB / 446.4 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-06/0.06493, allocations: 4 kB / 446.4 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.06494, allocations: 4 kB / 446.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.941e-05/0.06496, allocations: 83.27 kB / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.06497, allocations: 0 / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001734/0.06515, allocations: 16 kB / 446.5 MB, free: 12.11 MB / 298.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.0002499/0.0654, allocations: 0.6436 MB / 447.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.675e-05/0.06549, allocations: 27.94 kB / 447.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.0655, allocations: 0 / 447.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.0655, allocations: 384 / 447.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.06592, allocations: 0.7297 MB / 447.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004007/0.06634, allocations: 460.4 kB / 448.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.255e-05/0.06642, allocations: 0.6848 MB / 449.1 MB, free: 9.422 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.349e-05/0.06645, allocations: 15.44 kB / 449.1 MB, free: 9.406 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.06646, allocations: 0 / 449.1 MB, free: 9.406 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.266/2.332, allocations: 0.9426 MB / 450 MB, free: 8.465 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,assignClock1.y,pulse.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,previous(pulse.counter),previous(pulse.startOutput),pulse.counter,pulse.periodTicks,pulse.startOutput,pulse.startTick,pulse.widthTicks,pulse.y,time