Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 226.5 MB / 244.7 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008234/0.0008234, allocations: 96.92 kB / 296.7 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002378/0.0002378, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2085, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00127/0.2098, allocations: 1.155 MB / 409.3 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001608/0.2099, allocations: 35.84 kB / 409.3 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.466e-05/0.21, allocations: 4 kB / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.737e-05/0.21, allocations: 0.625 kB / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.036e-05/0.2101, allocations: 3.938 kB / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.2103, allocations: 24.72 kB / 409.4 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.544e-05/0.2104, allocations: 35.92 kB / 409.4 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.021e-05/0.2105, allocations: 10.05 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.489e-05/0.2106, allocations: 15.92 kB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.988e-05/0.2106, allocations: 23.86 kB / 409.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.2106, allocations: 0 / 409.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.2106, allocations: 0.9375 kB / 409.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.2107, allocations: 11.92 kB / 409.5 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.376e-05/0.2107, allocations: 37.64 kB / 409.5 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.926e-05/0.2108, allocations: 29.22 kB / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2108, allocations: 0 / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2108, allocations: 0 / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.956e-06/0.2108, allocations: 0.625 kB / 409.5 MB, free: 26.32 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.0003255/0.2111, allocations: 344.4 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.278e-05/0.2112, allocations: 12.03 kB / 409.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.384e-05/0.2112, allocations: 31.28 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/0.2113, allocations: 12.84 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.2114, allocations: 178.3 kB / 410.1 MB, free: 25.66 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 0.0001143/0.2115, allocations: 40.27 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.2115, allocations: 8.359 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002453/0.2118, allocations: 128.5 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.2118, allocations: 0 / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.2118, allocations: 1 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2118, allocations: 4 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.152e-05/0.2119, allocations: 19.92 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.747e-05/0.212, allocations: 169.4 kB / 410.4 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001429/0.2122, allocations: 135.8 kB / 410.6 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.322e-05/0.2122, allocations: 24.84 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.2122, allocations: 4 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.418e-05/0.2122, allocations: 34.5 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.2122, allocations: 4 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001706/0.2124, allocations: 73.53 kB / 410.7 MB, free: 24.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.2125, allocations: 59.41 kB / 410.8 MB, free: 24.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.128e-05/0.2125, allocations: 105.8 kB / 410.9 MB, free: 24.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.268e-06/0.2125, allocations: 25.7 kB / 410.9 MB, free: 24.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.046e-05/0.2126, allocations: 88.12 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.217e-05/0.2126, allocations: 15.83 kB / 411 MB, free: 24.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-06/0.2126, allocations: 4 kB / 411 MB, free: 24.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.97e-05/0.2126, allocations: 314.8 kB / 411.3 MB, free: 24.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.384e-05/0.2127, allocations: 8 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.369e-05/0.2127, allocations: 40.28 kB / 411.4 MB, free: 24.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.904e-05/0.2127, allocations: 56.17 kB / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2127, allocations: 0 / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.494e-05/0.2128, allocations: 65.62 kB / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.2128, allocations: 7.938 kB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2128, allocations: 7.938 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.2129, allocations: 3.984 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.946e-05/0.2129, allocations: 12.09 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.2129, allocations: 4 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.291e-05/0.2129, allocations: 4 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.2129, allocations: 4 kB / 411.5 MB, free: 24.04 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 5.415e-05/0.213, allocations: 113.8 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.755e-05/0.2131, allocations: 69.91 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.797e-05/0.2131, allocations: 7.969 kB / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.2131, allocations: 4 kB / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.2131, allocations: 0 / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2131, allocations: 4 kB / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.991e-05/0.2132, allocations: 157.7 kB / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2132, allocations: 7.984 kB / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.191e-06/0.2132, allocations: 0 / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2132, allocations: 3.938 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.2132, allocations: 4 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.2132, allocations: 0 / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2132, allocations: 0 / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.377e-05/0.2133, allocations: 89.12 kB / 412 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.917e-05/0.2134, allocations: 85.09 kB / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.2134, allocations: 0 / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.244e-05/0.2134, allocations: 15.92 kB / 412.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-06/0.2134, allocations: 3.984 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.2135, allocations: 4 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.076e-05/0.2135, allocations: 83.22 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2135, allocations: 0 / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001742/0.2137, allocations: 12 kB / 412.2 MB, free: 23.27 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.0002953/0.214, allocations: 0.6476 MB / 412.8 MB, free: 22.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.467e-05/0.2141, allocations: 27.94 kB / 412.8 MB, free: 22.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2141, allocations: 0 / 412.8 MB, free: 22.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.2141, allocations: 0 / 412.8 MB, free: 22.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.2145, allocations: 0.7293 MB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004408/0.215, allocations: 460.9 kB / 414 MB, free: 21.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.238e-05/0.2151, allocations: 0.6809 MB / 414.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.873e-05/0.2151, allocations: 15.42 kB / 414.7 MB, free: 20.58 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2151, allocations: 0 / 414.7 MB, free: 20.58 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.428/2.643, allocations: 0.9356 MB / 415.7 MB, free: 19.66 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.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