Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001398/0.001398, allocations: 105.7 kB / 19.74 MB, free: 2.453 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.001561/0.001561, allocations: 215 kB / 22.92 MB, free: 5.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.288/1.288, allocations: 230.5 MB / 256.4 MB, free: 8.254 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 63.83 kB / 376.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2215, allocations: 53.31 MB / 429.4 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002329/0.2238, allocations: 1.463 MB / 430.9 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001667/0.224, allocations: 43.84 kB / 430.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.39e-05/0.2241, allocations: 4 kB / 430.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.237e-05/0.2241, allocations: 3.938 kB / 430.9 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.71e-05/0.2241, allocations: 3.938 kB / 430.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.2243, allocations: 31.95 kB / 430.9 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.206e-05/0.2244, allocations: 35.92 kB / 431 MB, free: 6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.055e-05/0.2245, allocations: 8 kB / 431 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.928e-05/0.2245, allocations: 19.91 kB / 431 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.881e-05/0.2246, allocations: 19.92 kB / 431 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.2246, allocations: 4 kB / 431 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.045e-05/0.2246, allocations: 4 kB / 431 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.061e-05/0.2246, allocations: 11.92 kB / 431 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.511e-05/0.2247, allocations: 19.92 kB / 431.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.058e-05/0.2248, allocations: 39.69 kB / 431.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2248, allocations: 0 / 431.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2248, allocations: 7.938 kB / 431.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.2248, allocations: 3.938 kB / 431.1 MB, free: 5.867 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.0004182/0.2252, allocations: 344 kB / 431.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2252, allocations: 12.02 kB / 431.5 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.588e-05/0.2253, allocations: 34.75 kB / 431.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.722e-05/0.2253, allocations: 8.891 kB / 431.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.2255, allocations: 176.3 kB / 431.7 MB, free: 5.211 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 9.197e-05/0.2256, allocations: 34.25 kB / 431.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.2256, allocations: 12.38 kB / 431.7 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.2258, allocations: 135.5 kB / 431.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.2258, allocations: 0 / 431.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.2259, allocations: 0 / 431.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.2259, allocations: 4 kB / 431.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.441e-05/0.2259, allocations: 15.98 kB / 431.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/0.2261, allocations: 169.6 kB / 432 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.2262, allocations: 135.7 kB / 432.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.814e-05/0.2263, allocations: 16.86 kB / 432.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.2263, allocations: 4 kB / 432.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.2263, allocations: 38.48 kB / 432.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.2263, allocations: 7.875 kB / 432.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001892/0.2265, allocations: 77.69 kB / 432.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.2266, allocations: 55.34 kB / 432.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.698e-05/0.2266, allocations: 105.8 kB / 432.5 MB, free: 4.281 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.2267, allocations: 29.7 kB / 432.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.702e-05/0.2267, allocations: 84.14 kB / 432.6 MB, free: 4.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.2267, allocations: 7.953 kB / 432.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/0.2267, allocations: 21.7 kB / 432.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.2269, allocations: 314.8 kB / 432.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.609e-05/0.2269, allocations: 12 kB / 432.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.735e-05/0.2269, allocations: 40.28 kB / 433 MB, free: 3.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.241e-05/0.227, allocations: 44.67 kB / 433 MB, free: 3.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.227, allocations: 0 / 433 MB, free: 3.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.976e-05/0.2271, allocations: 77.52 kB / 433.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.2271, allocations: 11.06 kB / 433.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.2271, allocations: 4.047 kB / 433.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.2271, allocations: 7.984 kB / 433.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.908e-05/0.2271, allocations: 11.98 kB / 433.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.2272, allocations: 160 / 433.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.389e-05/0.2272, allocations: 8 kB / 433.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-06/0.2272, allocations: 0 / 433.1 MB, free: 3.562 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.473e-05/0.2273, allocations: 121.8 kB / 433.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.777e-05/0.2274, allocations: 61.62 kB / 433.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.253e-05/0.2274, allocations: 7.969 kB / 433.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.2274, allocations: 0 / 433.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.2274, allocations: 0 / 433.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2274, allocations: 0 / 433.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.818e-05/0.2275, allocations: 157.7 kB / 433.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.2275, allocations: 4 kB / 433.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.43e-06/0.2275, allocations: 0 / 433.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2275, allocations: 11.88 kB / 433.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.2275, allocations: 7.984 kB / 433.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.2275, allocations: 0 / 433.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2275, allocations: 3.938 kB / 433.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.2276, allocations: 85.08 kB / 433.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.363e-05/0.2277, allocations: 85.05 kB / 433.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.2277, allocations: 4 kB / 433.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.431e-05/0.2277, allocations: 11.98 kB / 433.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.064e-06/0.2277, allocations: 0 / 433.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.2277, allocations: 4 kB / 433.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.015e-05/0.2278, allocations: 83.28 kB / 433.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2278, allocations: 0 / 433.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001794/0.228, allocations: 11.94 kB / 433.8 MB, free: 2.805 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.0004605/0.2284, allocations: 0.6553 MB / 434.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.2285, allocations: 35.92 kB / 434.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2285, allocations: 0 / 434.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.2285, allocations: 0 / 434.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/0.2292, allocations: 0.7171 MB / 435.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.2302, allocations: 1.222 MB / 436.4 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.2305, allocations: 0.6846 MB / 437.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.753e-05/0.2305, allocations: 4 kB / 437.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.2305, allocations: 11.44 kB / 437.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2305, allocations: 0 / 437.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.253, allocations: 1.668 MB / 438.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.089/7.342, allocations: 13.56 kB / 438.8 MB, free: 13.7 MB / 350.1 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.433834843002842]