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.001202/0.001202, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3125, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002716/0.3152, allocations: 1.444 MB / 410.2 MB, free: 120 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002196/0.3155, allocations: 39.83 kB / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.927e-05/0.3156, allocations: 0 / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.208e-05/0.3156, allocations: 3.938 kB / 410.2 MB, free: 76 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.479e-05/0.3157, allocations: 3.938 kB / 410.2 MB, free: 72 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.316, allocations: 27.97 kB / 410.3 MB, free: 44 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.803e-05/0.3161, allocations: 39.91 kB / 410.3 MB, free: 4 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.3162, allocations: 12.03 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.102e-05/0.3163, allocations: 19.88 kB / 410.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.385e-05/0.3163, allocations: 23.92 kB / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.3164, allocations: 0 / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.869e-06/0.3164, allocations: 4 kB / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.264e-05/0.3164, allocations: 11.94 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.383e-05/0.3164, allocations: 19.91 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.3166, allocations: 35.89 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3166, allocations: 3.938 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.3166, allocations: 4 kB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.3166, allocations: 0 / 410.4 MB, free: 15.87 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.0005119/0.3171, allocations: 353.1 kB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3172, allocations: 8.031 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.1e-05/0.3172, allocations: 38.75 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.806e-05/0.3173, allocations: 8.844 kB / 410.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.3176, allocations: 184.3 kB / 411 MB, free: 15.2 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.0001128/0.3177, allocations: 38.25 kB / 411 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.3177, allocations: 4.375 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003042/0.318, allocations: 127.6 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.318, allocations: 3.938 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.318, allocations: 0 / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.3181, allocations: 0 / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.084e-05/0.3181, allocations: 27.97 kB / 411.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001541/0.3183, allocations: 157.7 kB / 411.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.3185, allocations: 147.7 kB / 411.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.633e-05/0.3186, allocations: 20.86 kB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.3186, allocations: 4 kB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.3186, allocations: 34.5 kB / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.322e-06/0.3186, allocations: 0 / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002183/0.3189, allocations: 81.53 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.3189, allocations: 59.33 kB / 411.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.066e-05/0.319, allocations: 109.9 kB / 411.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.319, allocations: 25.7 kB / 411.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.39e-05/0.3191, allocations: 88.12 kB / 411.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.3191, allocations: 7.906 kB / 411.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.3191, allocations: 17.72 kB / 411.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.754e-05/0.3192, allocations: 318.8 kB / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.931e-05/0.3193, allocations: 8 kB / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.056e-05/0.3193, allocations: 44.28 kB / 412.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.395e-05/0.3194, allocations: 44.22 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3194, allocations: 0 / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001049/0.3195, allocations: 81.56 kB / 412.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.3195, allocations: 7.938 kB / 412.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3195, allocations: 0 / 412.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.3195, allocations: 4 kB / 412.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.729e-05/0.3196, allocations: 4.438 kB / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.3196, allocations: 0 / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.68e-05/0.3196, allocations: 4 kB / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3197, allocations: 7.938 kB / 412.5 MB, free: 13.55 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 7.994e-05/0.3197, allocations: 129.9 kB / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.981e-05/0.3198, allocations: 65.53 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.589e-05/0.3199, allocations: 7.969 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3199, allocations: 0 / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3199, allocations: 0 / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3199, allocations: 0 / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.32, allocations: 157.7 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.32, allocations: 0 / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-06/0.32, allocations: 0 / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.3201, allocations: 7.938 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.3201, allocations: 8 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3201, allocations: 7.875 kB / 412.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3201, allocations: 3.938 kB / 412.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.3202, allocations: 85.11 kB / 412.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.818e-05/0.3203, allocations: 88.95 kB / 413 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.3203, allocations: 0 / 413 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.036e-05/0.3204, allocations: 8 kB / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-06/0.3204, allocations: 0 / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.3204, allocations: 11.98 kB / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.201e-05/0.3204, allocations: 83.28 kB / 413.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3204, allocations: 0 / 413.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002015/0.3207, allocations: 4 kB / 413.1 MB, free: 12.79 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.0004834/0.3211, allocations: 0.6555 MB / 413.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.3213, allocations: 39.98 kB / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3213, allocations: 0 / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.3213, allocations: 0 / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000603/0.3219, allocations: 0.7099 MB / 414.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009904/0.3229, allocations: 1.222 MB / 415.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.3231, allocations: 0.6846 MB / 416.4 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.638e-05/0.3232, allocations: 7.984 kB / 416.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.656e-05/0.3232, allocations: 19.44 kB / 416.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3232, allocations: 0 / 416.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.3423, allocations: 1.705 MB / 418.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.405/7.748, allocations: 0 / 418.2 MB, free: 7.703 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.0.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