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.0009185/0.0009185, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008609/0.0008609, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9056/0.9056, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.055e-05/2.237e-05, allocations: 3.266 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001992/0.002014, allocations: 1.458 MB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001787/0.002193, allocations: 39.84 kB / 326 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.843e-05/0.002251, allocations: 3.938 kB / 326 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.686e-05/0.002278, allocations: 3.938 kB / 326 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.149e-05/0.002329, allocations: 4 kB / 326 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002482/0.002578, allocations: 35.83 kB / 326.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.577e-05/0.002663, allocations: 39.86 kB / 326.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.889e-05/0.002762, allocations: 15.92 kB / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.48e-05/0.002827, allocations: 23.97 kB / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.037e-05/0.002857, allocations: 15.92 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.002882, allocations: 4 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.408e-06/0.002892, allocations: 4 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.09e-05/0.002913, allocations: 11.98 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.667e-05/0.002939, allocations: 15.98 kB / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.003042, allocations: 39.88 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.003044, allocations: 0 / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.003045, allocations: 0 / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.003052, allocations: 4 kB / 326.2 MB, free: 14.18 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.0004036/0.003456, allocations: 270.3 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.003497, allocations: 15.92 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.997e-05/0.003527, allocations: 38.75 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.923e-05/0.003556, allocations: 12.88 kB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.003754, allocations: 113.8 kB / 326.7 MB, free: 13.67 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.942e-05/0.003854, allocations: 34.27 kB / 326.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.003863, allocations: 4.375 kB / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.004089, allocations: 127.8 kB / 326.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-06/0.004096, allocations: 192 / 326.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.004104, allocations: 4.375 kB / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.00411, allocations: 7.938 kB / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.642e-05/0.004156, allocations: 15.98 kB / 326.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.902e-05/0.004255, allocations: 136.6 kB / 327 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.004412, allocations: 54.69 kB / 327 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.373e-05/0.004445, allocations: 24.84 kB / 327.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.004454, allocations: 3.938 kB / 327.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.004472, allocations: 30.56 kB / 327.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.004473, allocations: 4 kB / 327.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001775/0.00465, allocations: 81.56 kB / 327.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.004696, allocations: 59.41 kB / 327.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.709e-05/0.004754, allocations: 105.8 kB / 327.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.004765, allocations: 29.7 kB / 327.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.833e-05/0.004793, allocations: 80.14 kB / 327.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.004806, allocations: 7.953 kB / 327.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.004832, allocations: 21.7 kB / 327.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.7e-05/0.004909, allocations: 314.8 kB / 327.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.004919, allocations: 4 kB / 327.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.822e-05/0.004938, allocations: 17.7 kB / 327.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.314e-05/0.004971, allocations: 37.59 kB / 327.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.004973, allocations: 0 / 327.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.15e-05/0.005024, allocations: 49.7 kB / 327.9 MB, free: 12.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.005037, allocations: 4 kB / 327.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.005043, allocations: 7.922 kB / 327.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.005056, allocations: 3.938 kB / 327.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.961e-05/0.005096, allocations: 4 kB / 327.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.005102, allocations: 3.984 kB / 327.9 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.268e-05/0.005114, allocations: 4 kB / 327.9 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-06/0.005118, allocations: 0 / 327.9 MB, free: 12.26 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.016e-05/0.005178, allocations: 117.9 kB / 328 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.337e-05/0.005241, allocations: 61.64 kB / 328.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.81e-05/0.005259, allocations: 8.312 kB / 328.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.005263, allocations: 7.922 kB / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.005267, allocations: 0 / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.005269, allocations: 0 / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.118e-05/0.00533, allocations: 132.7 kB / 328.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.005331, allocations: 0 / 328.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.577e-06/0.005335, allocations: 4.375 kB / 328.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.005338, allocations: 3.984 kB / 328.2 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.523e-06/0.005344, allocations: 4 kB / 328.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.005348, allocations: 7.938 kB / 328.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.005348, allocations: 0 / 328.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.041e-05/0.005429, allocations: 89.08 kB / 328.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.975e-06/0.005437, allocations: 4 kB / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.005452, allocations: 4 kB / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.957e-05/0.005481, allocations: 11.92 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.455e-06/0.005484, allocations: 0 / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.005489, allocations: 3.938 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.845e-05/0.005517, allocations: 87.28 kB / 328.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005517, allocations: 0 / 328.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001237/0.005641, allocations: 8 kB / 328.5 MB, free: 11.64 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 (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.0003165/0.005957, allocations: 0.6522 MB / 329.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.723e-05/0.006035, allocations: 19.98 kB / 329.1 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.006036, allocations: 3.938 kB / 329.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-07/0.006037, allocations: 0 / 329.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004561/0.006493, allocations: 0.7219 MB / 329.9 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007021/0.007195, allocations: 1.159 MB / 331 MB, free: 8.938 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.838e-05/0.007233, allocations: 67.34 kB / 331.1 MB, free: 8.852 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.255e-05/0.007256, allocations: 4 kB / 331.1 MB, free: 8.848 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.914e-05/0.007295, allocations: 12.5 kB / 331.1 MB, free: 8.836 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.007296, allocations: 0 / 331.1 MB, free: 8.836 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.02467, allocations: 2.371 MB / 333.5 MB, free: 6.574 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.669/6.694, allocations: 10.8 kB / 333.5 MB, free: 6.566 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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: 8.35291116964072]