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.00127/0.00127, allocations: 115.7 kB / 18.49 MB, free: 4.59 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.00135/0.00135, allocations: 194.6 kB / 21.43 MB, free: 1.66 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.374/1.374, allocations: 225.6 MB / 249.8 MB, free: 3.633 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 47.92 kB / 366.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0995/0.1009, allocations: 52.15 MB / 418.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002625/0.1036, allocations: 1.429 MB / 419.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001885/0.1038, allocations: 39.91 kB / 419.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.664e-05/0.1038, allocations: 0 / 419.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.916e-05/0.1038, allocations: 3.938 kB / 420 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.326e-05/0.1039, allocations: 11.94 kB / 420 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.1041, allocations: 27.95 kB / 420 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.245e-05/0.1042, allocations: 39.86 kB / 420 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.873e-05/0.1043, allocations: 11.98 kB / 420 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.578e-05/0.1043, allocations: 15.92 kB / 420.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.104e-05/0.1044, allocations: 23.86 kB / 420.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.1044, allocations: 4 kB / 420.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.1044, allocations: 4 kB / 420.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.37e-05/0.1044, allocations: 11.97 kB / 420.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.802e-05/0.1045, allocations: 19.88 kB / 420.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.1046, allocations: 39.83 kB / 420.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1046, allocations: 4 kB / 420.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1046, allocations: 0 / 420.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1046, allocations: 0 / 420.2 MB, free: 11.03 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.0005096/0.1051, allocations: 355.4 kB / 420.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1052, allocations: 8.031 kB / 420.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.076e-05/0.1052, allocations: 4.188 kB / 420.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.236e-05/0.1052, allocations: 30.75 kB / 420.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/0.1052, allocations: 12.88 kB / 420.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000211/0.1054, allocations: 184.2 kB / 420.7 MB, free: 10.35 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.0001047/0.1055, allocations: 46.19 kB / 420.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.1056, allocations: 384 / 420.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.1059, allocations: 127.4 kB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.1059, allocations: 0 / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.1059, allocations: 0 / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.1059, allocations: 4 kB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.109e-05/0.1059, allocations: 19.92 kB / 420.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.1061, allocations: 161.7 kB / 421.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.1063, allocations: 131.8 kB / 421.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.452e-05/0.1064, allocations: 20.86 kB / 421.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.1064, allocations: 3.984 kB / 421.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1064, allocations: 38.5 kB / 421.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.1064, allocations: 0 / 421.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002145/0.1066, allocations: 85.58 kB / 421.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/0.1067, allocations: 59.41 kB / 421.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.398e-05/0.1068, allocations: 105.8 kB / 421.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.1068, allocations: 29.7 kB / 421.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.1068, allocations: 80.14 kB / 421.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.1068, allocations: 7.953 kB / 421.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.513e-05/0.1069, allocations: 29.7 kB / 421.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.107, allocations: 310.8 kB / 422 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.869e-05/0.107, allocations: 8 kB / 422 MB, free: 8.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.924e-05/0.1071, allocations: 44.27 kB / 422 MB, free: 8.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.91e-05/0.1071, allocations: 48.17 kB / 422.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1071, allocations: 4 kB / 422.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000105/0.1073, allocations: 77.5 kB / 422.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.1073, allocations: 4 kB / 422.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1073, allocations: 4.156 kB / 422.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1073, allocations: 4 kB / 422.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.349e-05/0.1073, allocations: 11.92 kB / 422.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1073, allocations: 4 kB / 422.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.192e-05/0.1074, allocations: 0 / 422.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1074, allocations: 4 kB / 422.2 MB, free: 8.711 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.489e-05/0.1075, allocations: 113.8 kB / 422.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.1076, allocations: 73.52 kB / 422.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.046e-05/0.1076, allocations: 3.969 kB / 422.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1076, allocations: 4 kB / 422.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1076, allocations: 0 / 422.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1076, allocations: 0 / 422.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001205/0.1077, allocations: 161.7 kB / 422.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1077, allocations: 4 kB / 422.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.628e-06/0.1077, allocations: 7.922 kB / 422.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1077, allocations: 0 / 422.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.1077, allocations: 448 / 422.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1077, allocations: 0 / 422.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1077, allocations: 4.094 kB / 422.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.1079, allocations: 93.11 kB / 422.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.1079, allocations: 85 kB / 422.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.108, allocations: 8 kB / 422.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.386e-05/0.108, allocations: 3.984 kB / 422.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.034e-06/0.108, allocations: 0 / 422.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.108, allocations: 4 kB / 422.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.291e-05/0.1081, allocations: 87.22 kB / 422.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1081, allocations: 0 / 422.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001879/0.1082, allocations: 8 kB / 422.8 MB, free: 7.957 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.0005499/0.1088, allocations: 0.6631 MB / 423.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001237/0.1089, allocations: 31.94 kB / 423.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1089, allocations: 3.938 kB / 423.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.1089, allocations: 384 / 423.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000723/0.1096, allocations: 0.7204 MB / 424.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.1108, allocations: 1.23 MB / 425.5 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.1111, allocations: 0.6844 MB / 426.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.711e-05/0.1111, allocations: 0 / 426.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.1111, allocations: 15.44 kB / 426.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1111, allocations: 0 / 426.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01812/0.1293, allocations: 1.749 MB / 427.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.035, allocations: 12.05 kB / 427.9 MB, free: 2.84 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.386661476979498]