Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 123.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 185.3 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.6 MB / 249.1 MB, free: 3.719 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 51.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.1004, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002712/0.1031, allocations: 1.44 MB / 419.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000188/0.1033, allocations: 39.84 kB / 419.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.674e-05/0.1034, allocations: 0 / 419.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.814e-05/0.1034, allocations: 0 / 419.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.53e-05/0.1035, allocations: 7.938 kB / 419.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.1037, allocations: 31.91 kB / 419.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.1038, allocations: 43.84 kB / 419.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.1039, allocations: 4 kB / 419.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.082e-05/0.104, allocations: 23.91 kB / 419.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.426e-05/0.104, allocations: 19.92 kB / 419.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.104, allocations: 4 kB / 419.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.073e-05/0.1041, allocations: 4 kB / 419.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.057e-05/0.1041, allocations: 8 kB / 419.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.702e-05/0.1041, allocations: 19.86 kB / 419.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.1042, allocations: 39.81 kB / 419.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.1042, allocations: 4 kB / 419.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1042, allocations: 0 / 419.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1042, allocations: 0 / 419.5 MB, free: 10.93 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.0005269/0.1048, allocations: 347.4 kB / 419.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1048, allocations: 12.03 kB / 419.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.623e-05/0.1048, allocations: 42.73 kB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.098e-05/0.1049, allocations: 4.938 kB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.1051, allocations: 184.1 kB / 420 MB, free: 10.26 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.0001307/0.1053, allocations: 46.25 kB / 420.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.1053, allocations: 384 / 420.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/0.1056, allocations: 127.6 kB / 420.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1056, allocations: 7.922 kB / 420.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.1056, allocations: 4 kB / 420.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1056, allocations: 0 / 420.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.809e-05/0.1057, allocations: 15.94 kB / 420.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001729/0.1059, allocations: 165.7 kB / 420.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.1061, allocations: 131.8 kB / 420.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.483e-05/0.1061, allocations: 20.86 kB / 420.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/0.1062, allocations: 0 / 420.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.1062, allocations: 42.44 kB / 420.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 3.296e-06/0.1062, allocations: 4 kB / 420.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002242/0.1064, allocations: 77.62 kB / 420.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.1065, allocations: 59.41 kB / 420.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.215e-05/0.1066, allocations: 105.8 kB / 420.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.1066, allocations: 25.7 kB / 420.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.483e-05/0.1066, allocations: 84.14 kB / 420.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.1066, allocations: 3.953 kB / 420.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.1067, allocations: 21.72 kB / 421 MB, free: 9.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1068, allocations: 322.8 kB / 421.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.525e-05/0.1068, allocations: 4 kB / 421.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.191e-05/0.1069, allocations: 44.22 kB / 421.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.491e-05/0.1069, allocations: 52.23 kB / 421.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1069, allocations: 0 / 421.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001002/0.107, allocations: 69.56 kB / 421.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.107, allocations: 11.88 kB / 421.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1071, allocations: 4 kB / 421.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.1071, allocations: 0 / 421.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.922e-05/0.1071, allocations: 4.594 kB / 421.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.1071, allocations: 8 kB / 421.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.538e-05/0.1071, allocations: 3.984 kB / 421.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1071, allocations: 4.047 kB / 421.5 MB, free: 8.621 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 8.954e-05/0.1072, allocations: 121.8 kB / 421.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.1073, allocations: 73.52 kB / 421.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.436e-05/0.1074, allocations: 7.969 kB / 421.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.1074, allocations: 0 / 421.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1074, allocations: 0 / 421.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.1074, allocations: 0 / 421.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.1075, allocations: 165.7 kB / 421.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1075, allocations: 0 / 421.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.781e-06/0.1075, allocations: 0 / 421.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1075, allocations: 3.938 kB / 421.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.1075, allocations: 0 / 421.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1075, allocations: 0 / 421.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.1075, allocations: 7.984 kB / 421.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001258/0.1076, allocations: 85.06 kB / 421.9 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.946e-05/0.1077, allocations: 89 kB / 422 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.1077, allocations: 11.94 kB / 422 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.909e-05/0.1077, allocations: 0 / 422 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.174e-06/0.1077, allocations: 0 / 422 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.1077, allocations: 7.984 kB / 422 MB, free: 7.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.655e-05/0.1078, allocations: 83.28 kB / 422.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1078, allocations: 0 / 422.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002026/0.108, allocations: 8 kB / 422.1 MB, free: 7.863 MB / 350.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.0005151/0.1085, allocations: 0.6633 MB / 422.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001157/0.1086, allocations: 31.92 kB / 422.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1086, allocations: 0 / 422.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.1086, allocations: 3.938 kB / 422.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007207/0.1094, allocations: 0.7224 MB / 423.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.1104, allocations: 1.225 MB / 424.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.1107, allocations: 0.6883 MB / 425.5 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.037e-05/0.1107, allocations: 4 kB / 425.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.316e-05/0.1108, allocations: 11.44 kB / 425.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1108, allocations: 0 / 425.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.1334, allocations: 1.706 MB / 427.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.779/7.913, allocations: 12.55 kB / 427.2 MB, free: 2.762 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 10.318635026924312]