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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001724/0.001724, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 220.2 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.64/1.64, allocations: 230.5 MB / 258.2 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 59.91 kB / 378.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3252, allocations: 53.41 MB / 432 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002721/0.328, allocations: 1.456 MB / 433.4 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002136/0.3282, allocations: 39.91 kB / 433.5 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.806e-05/0.3282, allocations: 4 kB / 433.5 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.309e-05/0.3283, allocations: 3.938 kB / 433.5 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.153e-05/0.3283, allocations: 7.922 kB / 433.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.3286, allocations: 19.98 kB / 433.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.3287, allocations: 51.77 kB / 433.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.3288, allocations: 8 kB / 433.6 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.648e-05/0.3289, allocations: 19.92 kB / 433.6 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.456e-05/0.3289, allocations: 15.92 kB / 433.6 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.3289, allocations: 8 kB / 433.6 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.245e-05/0.3289, allocations: 4 kB / 433.6 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.483e-05/0.329, allocations: 11.92 kB / 433.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.946e-05/0.329, allocations: 19.92 kB / 433.6 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.3291, allocations: 39.69 kB / 433.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3291, allocations: 0 / 433.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3291, allocations: 3.938 kB / 433.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.3291, allocations: 0 / 433.7 MB, free: 4.957 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.0004944/0.3296, allocations: 270.9 kB / 433.9 MB, free: 4.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.3297, allocations: 12.03 kB / 434 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.437e-05/0.3297, allocations: 4.188 kB / 434 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.822e-05/0.3297, allocations: 34.75 kB / 434 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.572e-05/0.3298, allocations: 8.891 kB / 434 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.33, allocations: 122.4 kB / 434.1 MB, free: 4.453 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.0001135/0.3301, allocations: 38.25 kB / 434.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.545e-05/0.3301, allocations: 4.375 kB / 434.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003569/0.3305, allocations: 127.4 kB / 434.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3305, allocations: 0 / 434.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.3305, allocations: 0 / 434.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3305, allocations: 0 / 434.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.326e-05/0.3306, allocations: 27.92 kB / 434.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001572/0.3307, allocations: 132.7 kB / 434.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.3309, allocations: 58.69 kB / 434.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.113e-05/0.331, allocations: 24.83 kB / 434.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.331, allocations: 4 kB / 434.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.331, allocations: 42.44 kB / 434.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.331, allocations: 3.938 kB / 434.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.00022/0.3312, allocations: 69.69 kB / 434.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.173e-05/0.3313, allocations: 55.41 kB / 434.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.3314, allocations: 109.8 kB / 434.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.3314, allocations: 25.7 kB / 434.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.83e-05/0.3315, allocations: 88.14 kB / 434.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.3315, allocations: 3.953 kB / 434.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.3316, allocations: 21.7 kB / 434.9 MB, free: 3.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3317, allocations: 318.8 kB / 435.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.939e-05/0.3317, allocations: 4.438 kB / 435.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.889e-05/0.3318, allocations: 52.16 kB / 435.3 MB, free: 3.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.605e-05/0.3318, allocations: 44.23 kB / 435.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3318, allocations: 4 kB / 435.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001212/0.332, allocations: 81.52 kB / 435.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.332, allocations: 4 kB / 435.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.332, allocations: 0 / 435.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.332, allocations: 4 kB / 435.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.2e-05/0.332, allocations: 11.92 kB / 435.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.3321, allocations: 0 / 435.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.534e-05/0.3321, allocations: 4 kB / 435.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.3321, allocations: 0 / 435.5 MB, free: 2.945 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.769e-05/0.3322, allocations: 122 kB / 435.6 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3323, allocations: 65.56 kB / 435.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.707e-05/0.3323, allocations: 8.062 kB / 435.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.3323, allocations: 0 / 435.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3323, allocations: 0 / 435.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3323, allocations: 0 / 435.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.3324, allocations: 132.7 kB / 435.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3324, allocations: 0 / 435.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.246e-05/0.3325, allocations: 11.88 kB / 435.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3325, allocations: 3.984 kB / 435.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.3325, allocations: 4 kB / 435.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3325, allocations: 0 / 435.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3325, allocations: 0 / 435.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.3326, allocations: 89.08 kB / 435.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.189e-05/0.3326, allocations: 3.938 kB / 435.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.3326, allocations: 11.94 kB / 435.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.387e-05/0.3327, allocations: 3.984 kB / 435.9 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-06/0.3327, allocations: 0 / 435.9 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.3327, allocations: 12 kB / 435.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.581e-05/0.3327, allocations: 83.28 kB / 436 MB, free: 2.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3327, allocations: 0 / 436 MB, free: 2.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001924/0.3329, allocations: 12 kB / 436 MB, free: 2.312 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.0005129/0.3334, allocations: 0.6398 MB / 436.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001243/0.3336, allocations: 39.98 kB / 436.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3336, allocations: 0 / 436.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-07/0.3336, allocations: 3.938 kB / 436.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000714/0.3343, allocations: 0.7175 MB / 437.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.3355, allocations: 1.238 MB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.3358, allocations: 0.6807 MB / 439.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.476e-05/0.3358, allocations: 4 kB / 439.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.3358, allocations: 15.44 kB / 439.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3358, allocations: 0 / 439.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3587, allocations: 1.859 MB / 441.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.94, allocations: 7.922 kB / 441.2 MB, free: 13.06 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=0.000199561 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.73146621696651]