Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00197/0.00197, allocations: 211.7 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_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_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 51.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2867, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002989/0.2897, allocations: 1.448 MB / 432.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002422/0.29, allocations: 35.91 kB / 432.6 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.111e-05/0.29, allocations: 0 / 432.6 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.676e-05/0.2901, allocations: 3.938 kB / 432.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.612e-05/0.2901, allocations: 7.922 kB / 432.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002618/0.2904, allocations: 27.98 kB / 432.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.2905, allocations: 51.83 kB / 432.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.2906, allocations: 11.8 kB / 432.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.738e-05/0.2907, allocations: 15.92 kB / 432.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.273e-05/0.2907, allocations: 19.92 kB / 432.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.2907, allocations: 4 kB / 432.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.2908, allocations: 0 / 432.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.896e-05/0.2908, allocations: 15.92 kB / 432.7 MB, free: 5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.195e-05/0.2908, allocations: 15.92 kB / 432.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001156/0.2909, allocations: 39.88 kB / 432.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.291, allocations: 3.938 kB / 432.8 MB, free: 4.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.291, allocations: 0 / 432.8 MB, free: 4.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.291, allocations: 4 kB / 432.8 MB, free: 4.938 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.0004984/0.2915, allocations: 272.1 kB / 433.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.2915, allocations: 8.031 kB / 433.1 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.082e-05/0.2915, allocations: 38.75 kB / 433.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.385e-05/0.2916, allocations: 8.891 kB / 433.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.2918, allocations: 118.5 kB / 433.2 MB, free: 4.438 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 0.000119/0.2919, allocations: 44.62 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.2919, allocations: 384 / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.2923, allocations: 131.6 kB / 433.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2923, allocations: 0 / 433.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.2923, allocations: 4 kB / 433.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2923, allocations: 0 / 433.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.429e-05/0.2924, allocations: 19.92 kB / 433.4 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001539/0.2925, allocations: 136.7 kB / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001937/0.2927, allocations: 54.69 kB / 433.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.329e-05/0.2928, allocations: 16.86 kB / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.2928, allocations: 0 / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.2928, allocations: 50.48 kB / 433.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.093e-06/0.2928, allocations: 0 / 433.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002336/0.293, allocations: 73.62 kB / 433.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.204e-05/0.2931, allocations: 55.41 kB / 433.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.659e-05/0.2932, allocations: 105.8 kB / 433.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.2932, allocations: 25.7 kB / 433.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.56e-05/0.2933, allocations: 88.14 kB / 434 MB, free: 3.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.2933, allocations: 3.953 kB / 434 MB, free: 3.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.2933, allocations: 21.7 kB / 434 MB, free: 3.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.2935, allocations: 322.8 kB / 434.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.699e-05/0.2935, allocations: 4 kB / 434.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.106e-05/0.2935, allocations: 48.22 kB / 434.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.454e-05/0.2936, allocations: 48.23 kB / 434.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2936, allocations: 0 / 434.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000104/0.2937, allocations: 69.58 kB / 434.5 MB, free: 2.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.2937, allocations: 16.09 kB / 434.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.2937, allocations: 0 / 434.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2937, allocations: 4 kB / 434.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.997e-05/0.2938, allocations: 11.92 kB / 434.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.2938, allocations: 4.141 kB / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.449e-05/0.2938, allocations: 4 kB / 434.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-06/0.2938, allocations: 0 / 434.6 MB, free: 2.934 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 8.892e-05/0.2939, allocations: 117.8 kB / 434.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.294, allocations: 73.59 kB / 434.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.398e-05/0.294, allocations: 8.062 kB / 434.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.294, allocations: 4 kB / 434.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.294, allocations: 448 / 434.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.294, allocations: 0 / 434.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.848e-05/0.2941, allocations: 124.8 kB / 434.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2942, allocations: 4 kB / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.402e-06/0.2942, allocations: 0 / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2942, allocations: 7.938 kB / 434.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.2942, allocations: 7.984 kB / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2942, allocations: 0 / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2942, allocations: 0 / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.2943, allocations: 89.08 kB / 435 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.001e-05/0.2943, allocations: 7.938 kB / 435 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.2943, allocations: 8 kB / 435 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.244e-05/0.2944, allocations: 3.984 kB / 435 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.444e-06/0.2944, allocations: 3.938 kB / 435 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-06/0.2944, allocations: 4 kB / 435 MB, free: 2.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.583e-05/0.2944, allocations: 87.22 kB / 435.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2944, allocations: 0 / 435.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001884/0.2946, allocations: 8 kB / 435.1 MB, free: 2.305 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.0005209/0.2951, allocations: 0.6515 MB / 435.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001206/0.2953, allocations: 35.98 kB / 435.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2953, allocations: 0 / 435.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.2953, allocations: 4 kB / 435.8 MB, free: 1.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007096/0.296, allocations: 0.7103 MB / 436.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.2971, allocations: 1.222 MB / 437.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.055e-05/0.2972, allocations: 71.7 kB / 437.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.065e-05/0.2972, allocations: 4 kB / 437.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.764e-05/0.2973, allocations: 19.38 kB / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2973, allocations: 0 / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.3258, allocations: 2.285 MB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.94, allocations: 10.98 kB / 440.1 MB, free: 13.27 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv","/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_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable assignClock1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.531253783003194]