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.0009287/0.0009287, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001246/0.001246, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9489/0.9489, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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 2.434e-06/2.434e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.245e-05/2.489e-05, allocations: 5.375 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003098/0.003123, allocations: 1.462 MB / 326 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002512/0.003374, allocations: 39.91 kB / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.849e-05/0.003443, allocations: 0 / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.508e-05/0.003478, allocations: 3.938 kB / 326.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.072e-05/0.003548, allocations: 11.86 kB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.003858, allocations: 27.91 kB / 326.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001218/0.00398, allocations: 35.92 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.004105, allocations: 15.97 kB / 326.2 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.892e-05/0.004194, allocations: 19.92 kB / 326.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.504e-05/0.004239, allocations: 15.98 kB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.11e-05/0.004271, allocations: 4 kB / 326.2 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.899e-06/0.00428, allocations: 0 / 326.2 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.872e-05/0.004309, allocations: 19.92 kB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.899e-05/0.004348, allocations: 15.98 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001315/0.00448, allocations: 39.88 kB / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.004483, allocations: 0 / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.004485, allocations: 0 / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.004491, allocations: 0 / 326.3 MB, free: 14.24 MB / 298.7 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.0005097/0.005, allocations: 273.2 kB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.005049, allocations: 12.03 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.1e-05/0.00509, allocations: 38.73 kB / 326.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.00513, allocations: 8.891 kB / 326.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.005379, allocations: 121.7 kB / 326.7 MB, free: 13.73 MB / 298.7 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.0001348/0.005514, allocations: 38.25 kB / 326.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.00553, allocations: 8.375 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.005867, allocations: 131.7 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.005878, allocations: 192 / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.00589, allocations: 384 / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.005898, allocations: 3.938 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.431e-05/0.005973, allocations: 15.98 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.006119, allocations: 136.7 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.00633, allocations: 58.67 kB / 327.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.145e-05/0.006391, allocations: 28.78 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.006405, allocations: 7.938 kB / 327.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.006434, allocations: 30.56 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.683e-06/0.006436, allocations: 0 / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002541/0.00669, allocations: 73.62 kB / 327.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.006751, allocations: 55.41 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.215e-05/0.006833, allocations: 105.8 kB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.006849, allocations: 25.7 kB / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.156e-05/0.00689, allocations: 92.14 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/0.006907, allocations: 7.938 kB / 327.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/0.006945, allocations: 21.66 kB / 327.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.007047, allocations: 310.8 kB / 327.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.555e-05/0.007062, allocations: 8 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.436e-05/0.007086, allocations: 17.7 kB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.275e-05/0.007129, allocations: 26.16 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.007132, allocations: 0 / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.941e-05/0.007221, allocations: 57.66 kB / 327.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.007237, allocations: 4 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.007242, allocations: 0 / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.00726, allocations: 11.94 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.004e-05/0.007311, allocations: 0 / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.007315, allocations: 4 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.981e-05/0.007335, allocations: 4 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.00734, allocations: 3.938 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.721e-05/0.007417, allocations: 109.8 kB / 328.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.007525, allocations: 69.58 kB / 328.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.251e-05/0.007547, allocations: 12.16 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.007552, allocations: 7.938 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.007557, allocations: 0 / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.007562, allocations: 3.984 kB / 328.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.02e-05/0.007652, allocations: 128.7 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.007654, allocations: 0 / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.624e-06/0.007661, allocations: 0 / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.007665, allocations: 0 / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.007676, allocations: 4 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.007679, allocations: 3.938 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.007681, allocations: 0 / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001358/0.007816, allocations: 97.02 kB / 328.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.138e-05/0.007828, allocations: 0 / 328.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.007847, allocations: 3.984 kB / 328.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.919e-05/0.007896, allocations: 11.94 kB / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.965e-06/0.007899, allocations: 0 / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.007909, allocations: 7.938 kB / 328.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.732e-05/0.007956, allocations: 91.27 kB / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.007956, allocations: 0 / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002279/0.008184, allocations: 4 kB / 328.5 MB, free: 11.7 MB / 298.7 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.0004876/0.008671, allocations: 0.6398 MB / 329.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001196/0.008791, allocations: 32 kB / 329.2 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.008793, allocations: 0 / 329.2 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.008793, allocations: 0 / 329.2 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000713/0.009506, allocations: 0.7184 MB / 329.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.01061, allocations: 1.167 MB / 331.1 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.919e-05/0.01066, allocations: 67.34 kB / 331.1 MB, free: 8.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.745e-05/0.01069, allocations: 4.125 kB / 331.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.782e-05/0.01074, allocations: 24.48 kB / 331.2 MB, free: 8.883 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.01074, allocations: 0 / 331.2 MB, free: 8.883 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01727/0.028, allocations: 2.369 MB / 333.5 MB, free: 6.645 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.967/6.995, allocations: 2.625 kB / 333.5 MB, free: 6.645 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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: 8.847022463567555]