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.001401/0.001401, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.001434/0.001434, allocations: 220.7 kB / 21.46 MB, free: 1.582 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.519/1.519, allocations: 230.4 MB / 254.7 MB, free: 15.01 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.001828/0.001828, allocations: 63.91 kB / 373.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09393/0.09576, allocations: 53.38 MB / 427.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002698/0.09846, allocations: 1.435 MB / 428.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002022/0.09866, allocations: 51.77 kB / 428.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.998e-05/0.09872, allocations: 0 / 428.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.613e-05/0.09874, allocations: 7.922 kB / 428.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.032e-05/0.09881, allocations: 3.938 kB / 428.6 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.09902, allocations: 27.97 kB / 428.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.207e-05/0.09911, allocations: 35.92 kB / 428.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.062e-05/0.09919, allocations: 7.984 kB / 428.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.695e-05/0.09925, allocations: 15.94 kB / 428.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.192e-05/0.09929, allocations: 27.89 kB / 428.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.09931, allocations: 8 kB / 428.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.268e-05/0.09932, allocations: 4 kB / 428.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.09934, allocations: 4 kB / 428.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.789e-05/0.09938, allocations: 23.86 kB / 428.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.09948, allocations: 39.81 kB / 428.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.09949, allocations: 0 / 428.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.09949, allocations: 0 / 428.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.09949, allocations: 0 / 428.7 MB, free: 2.883 MB / 350.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.0004816/0.09997, allocations: 347.4 kB / 429.1 MB, free: 2.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1, allocations: 19.97 kB / 429.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.29e-05/0.1, allocations: 192 / 429.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.431e-05/0.1001, allocations: 42.69 kB / 429.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.1001, allocations: 4.891 kB / 429.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.1003, allocations: 184.3 kB / 429.3 MB, free: 2.199 MB / 350.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.0001071/0.1004, allocations: 34.27 kB / 429.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.1005, allocations: 4.375 kB / 429.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.1008, allocations: 131.4 kB / 429.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1008, allocations: 0 / 429.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.1008, allocations: 0 / 429.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.1008, allocations: 0 / 429.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.527e-05/0.1008, allocations: 23.98 kB / 429.5 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001546/0.101, allocations: 161.6 kB / 429.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.1012, allocations: 139.7 kB / 429.8 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.722e-05/0.1013, allocations: 20.84 kB / 429.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.1013, allocations: 0 / 429.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.1013, allocations: 42.5 kB / 429.9 MB, free: 1.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.1013, allocations: 0 / 429.9 MB, free: 1.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002258/0.1015, allocations: 65.69 kB / 429.9 MB, free: 1.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.486e-05/0.1016, allocations: 63.34 kB / 430 MB, free: 1.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.931e-05/0.1017, allocations: 114 kB / 430.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1017, allocations: 25.7 kB / 430.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.253e-05/0.1018, allocations: 84.14 kB / 430.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.1018, allocations: 15.88 kB / 430.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.1018, allocations: 17.72 kB / 430.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.102, allocations: 318.8 kB / 430.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.026e-05/0.102, allocations: 11.98 kB / 430.6 MB, free: 0.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.294e-05/0.102, allocations: 36.3 kB / 430.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.4e-05/0.1021, allocations: 52.22 kB / 430.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1021, allocations: 0 / 430.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001118/0.1022, allocations: 81.45 kB / 430.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1022, allocations: 8 kB / 430.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1022, allocations: 0 / 430.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1022, allocations: 4 kB / 430.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.763e-05/0.1023, allocations: 4 kB / 430.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.1023, allocations: 0 / 430.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.592e-05/0.1023, allocations: 4 kB / 430.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.1023, allocations: 0 / 430.8 MB, free: 0.5703 MB / 350.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.294e-05/0.1024, allocations: 124 kB / 430.9 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.1025, allocations: 65.62 kB / 430.9 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.742e-05/0.1026, allocations: 7.953 kB / 431 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1026, allocations: 4 kB / 431 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1026, allocations: 0 / 431 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1026, allocations: 3.938 kB / 431 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.1027, allocations: 161.7 kB / 431.1 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1027, allocations: 0 / 431.1 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.441e-05/0.1027, allocations: 3.938 kB / 431.1 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1027, allocations: 96 / 431.1 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.1027, allocations: 8 kB / 431.1 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1027, allocations: 0 / 431.1 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.1027, allocations: 7.922 kB / 431.1 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.1029, allocations: 89.31 kB / 431.2 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.1029, allocations: 85.05 kB / 431.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.1029, allocations: 8 kB / 431.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.853e-05/0.103, allocations: 4 kB / 431.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.886e-06/0.103, allocations: 3.938 kB / 431.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.103, allocations: 4 kB / 431.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.976e-05/0.1031, allocations: 91.27 kB / 431.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1031, allocations: 0 / 431.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001986/0.1033, allocations: 4 kB / 431.4 MB, free: 15.8 MB / 366.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.0005544/0.1038, allocations: 0.6593 MB / 432.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000134/0.1039, allocations: 35.92 kB / 432.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1039, allocations: 0 / 432.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.1039, allocations: 0 / 432.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007734/0.1047, allocations: 0.7103 MB / 432.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.1059, allocations: 1.223 MB / 434.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.1062, allocations: 0.6846 MB / 434.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.873e-05/0.1062, allocations: 11.98 kB / 434.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/0.1063, allocations: 7.438 kB / 434.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1063, allocations: 0 / 434.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.1249, allocations: 1.744 MB / 436.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.12/8.245, allocations: 8.047 kB / 436.5 MB, free: 10.69 MB / 366.1 MB " [Timeout remaining time 652] (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: 11.022743168985471]