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.001737/0.001737, allocations: 119 kB / 17.78 MB, free: 5.23 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.00197/0.00197, allocations: 197.2 kB / 20.73 MB, free: 2.289 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.397/1.397, allocations: 225.6 MB / 249.1 MB, free: 3.602 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.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1315, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003927/0.1354, allocations: 1.43 MB / 419.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002668/0.1357, allocations: 43.84 kB / 419.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.681e-05/0.1358, allocations: 0 / 419.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.67e-05/0.1358, allocations: 3.938 kB / 419.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.743e-05/0.1359, allocations: 3.938 kB / 419.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.1362, allocations: 31.95 kB / 419.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.1363, allocations: 43.86 kB / 419.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.1364, allocations: 7.984 kB / 419.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.528e-05/0.1364, allocations: 15.94 kB / 419.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.076e-05/0.1365, allocations: 23.91 kB / 419.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.1365, allocations: 4 kB / 419.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.393e-05/0.1365, allocations: 4 kB / 419.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.033e-05/0.1366, allocations: 11.98 kB / 419.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.571e-05/0.1366, allocations: 15.88 kB / 419.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.1368, allocations: 43.8 kB / 419.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1368, allocations: 0 / 419.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1368, allocations: 0 / 419.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1368, allocations: 4 kB / 419.5 MB, free: 10.91 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.0007332/0.1375, allocations: 347.4 kB / 419.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/0.1376, allocations: 15.97 kB / 419.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.8e-05/0.1376, allocations: 34.75 kB / 419.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/0.1377, allocations: 4.938 kB / 419.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.1381, allocations: 180.2 kB / 420 MB, free: 10.25 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.0001563/0.1382, allocations: 42.25 kB / 420.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.1383, allocations: 12.3 kB / 420.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004444/0.1387, allocations: 131.5 kB / 420.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1387, allocations: 0 / 420.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.1387, allocations: 0 / 420.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.1387, allocations: 0 / 420.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001004/0.1388, allocations: 19.98 kB / 420.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002492/0.1391, allocations: 161.7 kB / 420.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.1394, allocations: 135.7 kB / 420.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.398e-05/0.1395, allocations: 24.84 kB / 420.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.1395, allocations: 0 / 420.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.1396, allocations: 38.5 kB / 420.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.593e-06/0.1396, allocations: 0 / 420.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003118/0.1399, allocations: 73.64 kB / 420.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.9e-05/0.14, allocations: 67.34 kB / 420.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.1401, allocations: 110 kB / 420.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.1401, allocations: 25.7 kB / 420.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.554e-05/0.1402, allocations: 84.14 kB / 420.9 MB, free: 9.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.1402, allocations: 7.938 kB / 420.9 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.372e-05/0.1403, allocations: 25.7 kB / 421 MB, free: 9.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.1405, allocations: 314.8 kB / 421.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.511e-05/0.1405, allocations: 4 kB / 421.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.52e-05/0.1406, allocations: 44.28 kB / 421.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.749e-05/0.1407, allocations: 52.23 kB / 421.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1407, allocations: 0 / 421.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001678/0.1408, allocations: 69.56 kB / 421.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1409, allocations: 11.88 kB / 421.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1409, allocations: 4 kB / 421.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.1409, allocations: 3.984 kB / 421.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.106e-05/0.141, allocations: 4 kB / 421.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.141, allocations: 4 kB / 421.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.796e-05/0.141, allocations: 160 / 421.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.141, allocations: 8 kB / 421.5 MB, free: 8.602 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 0.000141/0.1411, allocations: 120 kB / 421.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.1413, allocations: 69.58 kB / 421.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.084e-05/0.1413, allocations: 3.969 kB / 421.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1413, allocations: 0 / 421.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1414, allocations: 0 / 421.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1414, allocations: 0 / 421.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.1416, allocations: 165.7 kB / 421.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1416, allocations: 3.984 kB / 421.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.225e-06/0.1416, allocations: 4 kB / 421.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.1416, allocations: 3.938 kB / 421.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.1416, allocations: 3.938 kB / 421.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.1416, allocations: 0 / 421.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.1416, allocations: 4 kB / 421.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002071/0.1418, allocations: 85.31 kB / 421.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.084e-05/0.1419, allocations: 85.14 kB / 422 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.764e-05/0.1419, allocations: 19.97 kB / 422 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.264e-05/0.142, allocations: 4 kB / 422 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-06/0.142, allocations: 0 / 422 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.142, allocations: 4 kB / 422 MB, free: 7.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.759e-05/0.1421, allocations: 83.28 kB / 422.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1421, allocations: 0 / 422.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003455/0.1424, allocations: 8 kB / 422.1 MB, free: 7.844 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.0007465/0.1432, allocations: 0.667 MB / 422.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00017/0.1433, allocations: 27.94 kB / 422.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1433, allocations: 0 / 422.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.71e-07/0.1433, allocations: 7.938 kB / 422.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.1444, allocations: 0.7145 MB / 423.5 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.146, allocations: 1.218 MB / 424.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.1465, allocations: 0.6962 MB / 425.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.798e-05/0.1465, allocations: 0 / 425.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.248e-05/0.1465, allocations: 15.42 kB / 425.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.1465, allocations: 0 / 425.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03428/0.1808, allocations: 1.702 MB / 427.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.123/8.304, allocations: 4.062 kB / 427.2 MB, free: 2.754 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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/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] "Error: Could not read variable assignClock1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.90942840417847]