Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001299/0.001299, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001387, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 64.11 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2876, allocations: 50.56 MB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002698/0.2904, allocations: 1.436 MB / 410.3 MB, free: 8 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002071/0.2906, allocations: 40.02 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.239e-05/0.2907, allocations: 4 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.667e-05/0.2907, allocations: 7.938 kB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.612e-05/0.2908, allocations: 7.922 kB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.291, allocations: 23.97 kB / 410.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.269e-05/0.2911, allocations: 39.91 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.741e-05/0.2912, allocations: 8 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.48e-05/0.2913, allocations: 19.81 kB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.325e-05/0.2913, allocations: 15.92 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.958e-05/0.2913, allocations: 4 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.66e-05/0.2914, allocations: 4 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.2914, allocations: 19.84 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.232e-05/0.2914, allocations: 19.94 kB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.2915, allocations: 31.89 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2916, allocations: 0 / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.2916, allocations: 0 / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.2916, allocations: 3.938 kB / 410.5 MB, free: 15.76 MB / 334.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.0004757/0.2921, allocations: 350.5 kB / 410.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.2921, allocations: 12.03 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.196e-05/0.2922, allocations: 38.73 kB / 410.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.167e-05/0.2922, allocations: 8.891 kB / 410.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.2924, allocations: 180.3 kB / 411.1 MB, free: 15.09 MB / 334.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.0001045/0.2925, allocations: 38.25 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.2926, allocations: 4.375 kB / 411.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.2929, allocations: 135.5 kB / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2929, allocations: 0 / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.2929, allocations: 0 / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.2929, allocations: 4 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.481e-05/0.293, allocations: 12 kB / 411.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001773/0.2932, allocations: 169.5 kB / 411.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.2934, allocations: 143.8 kB / 411.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.105e-05/0.2935, allocations: 20.86 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.2935, allocations: 0 / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.2935, allocations: 46.48 kB / 411.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 2.665e-06/0.2935, allocations: 4 kB / 411.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002182/0.2937, allocations: 73.56 kB / 411.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.2938, allocations: 59.41 kB / 411.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.841e-05/0.2939, allocations: 105.8 kB / 411.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.2939, allocations: 25.7 kB / 411.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.775e-05/0.294, allocations: 84.14 kB / 412 MB, free: 14.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.294, allocations: 7.953 kB / 412 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/0.294, allocations: 25.7 kB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.2942, allocations: 314.8 kB / 412.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.631e-05/0.2942, allocations: 4 kB / 412.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.341e-05/0.2943, allocations: 44.27 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.065e-05/0.2943, allocations: 52.23 kB / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2943, allocations: 0 / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000104/0.2944, allocations: 73.52 kB / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.2945, allocations: 11.94 kB / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.2945, allocations: 208 / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2945, allocations: 7.984 kB / 412.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.136e-05/0.2946, allocations: 15.92 kB / 412.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.2946, allocations: 0 / 412.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.386e-05/0.2946, allocations: 0 / 412.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.2946, allocations: 4 kB / 412.5 MB, free: 13.43 MB / 334.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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.098e-05/0.2947, allocations: 113.8 kB / 412.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.2948, allocations: 65.62 kB / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.193e-05/0.2948, allocations: 3.969 kB / 412.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.2948, allocations: 4 kB / 412.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2949, allocations: 4 kB / 412.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.2949, allocations: 0 / 412.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.295, allocations: 166 kB / 412.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.295, allocations: 0 / 412.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.937e-06/0.295, allocations: 4 kB / 412.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.295, allocations: 3.938 kB / 412.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.295, allocations: 7.922 kB / 412.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2951, allocations: 7.938 kB / 412.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.2951, allocations: 0 / 412.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001376/0.2952, allocations: 89.08 kB / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.268e-05/0.2953, allocations: 81.05 kB / 413.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.2953, allocations: 8 kB / 413.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.891e-05/0.2954, allocations: 7.984 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-06/0.2954, allocations: 0 / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.2954, allocations: 0 / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.434e-05/0.2954, allocations: 83.28 kB / 413.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2954, allocations: 0 / 413.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001923/0.2956, allocations: 8 kB / 413.2 MB, free: 12.68 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005085/0.2962, allocations: 0.6553 MB / 413.8 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.2963, allocations: 35.92 kB / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2963, allocations: 0 / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.2963, allocations: 384 / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000751/0.2971, allocations: 0.722 MB / 414.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.2982, allocations: 1.218 MB / 415.8 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.2985, allocations: 0.6846 MB / 416.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.294e-05/0.2986, allocations: 0 / 416.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.089e-05/0.2986, allocations: 15.44 kB / 416.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2986, allocations: 0 / 416.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.3212, allocations: 1.683 MB / 418.2 MB, free: 7.625 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.932/8.253, allocations: 11.52 kB / 418.2 MB, free: 7.617 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches