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.0008706/0.0008706, allocations: 76.08 kB / 20.67 MB, free: 3.879 MB / 18.57 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.000747/0.000747, allocations: 157.1 kB / 23.94 MB, free: 0.6133 MB / 18.57 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 0.9381/0.9381, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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 1.593e-06/1.593e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.905e-05/2.064e-05, allocations: 5.656 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002075/0.002096, allocations: 1.418 MB / 319.9 MB, free: 4.945 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001818/0.002277, allocations: 39.84 kB / 319.9 MB, free: 4.906 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.469e-05/0.002332, allocations: 3.938 kB / 319.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.594e-05/0.002358, allocations: 7.922 kB / 319.9 MB, free: 4.895 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.543e-05/0.002414, allocations: 7.922 kB / 319.9 MB, free: 4.887 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002175/0.002631, allocations: 31.91 kB / 319.9 MB, free: 4.855 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.155e-05/0.002723, allocations: 43.8 kB / 320 MB, free: 4.812 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.382e-05/0.002816, allocations: 11.98 kB / 320 MB, free: 4.801 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.356e-05/0.00288, allocations: 19.98 kB / 320 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.193e-05/0.002912, allocations: 19.97 kB / 320 MB, free: 4.762 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.002933, allocations: 4 kB / 320 MB, free: 4.758 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.873e-06/0.00294, allocations: 0 / 320 MB, free: 4.758 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.816e-05/0.002958, allocations: 15.92 kB / 320.1 MB, free: 4.742 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.002984, allocations: 11.98 kB / 320.1 MB, free: 4.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.575e-05/0.00308, allocations: 43.88 kB / 320.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.003082, allocations: 0 / 320.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.003083, allocations: 0 / 320.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.003087, allocations: 0 / 320.1 MB, free: 4.688 MB / 282.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.0003564/0.003444, allocations: 274.3 kB / 320.4 MB, free: 4.387 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.003485, allocations: 12.92 kB / 320.4 MB, free: 4.375 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.948e-05/0.003515, allocations: 34.75 kB / 320.4 MB, free: 4.332 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.683e-05/0.003542, allocations: 8.891 kB / 320.4 MB, free: 4.324 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.003705, allocations: 121.7 kB / 320.6 MB, free: 4.18 MB / 282.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 9.795e-05/0.003802, allocations: 42.25 kB / 320.6 MB, free: 4.133 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-06/0.003812, allocations: 8.312 kB / 320.6 MB, free: 4.125 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.004037, allocations: 119.9 kB / 320.7 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.004045, allocations: 192 / 320.7 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.004053, allocations: 384 / 320.7 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.004058, allocations: 3.938 kB / 320.7 MB, free: 3.992 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.776e-05/0.004106, allocations: 19.94 kB / 320.7 MB, free: 3.973 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.819e-05/0.004204, allocations: 132.8 kB / 320.9 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001322/0.004336, allocations: 58.67 kB / 320.9 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.226e-05/0.004368, allocations: 16.86 kB / 320.9 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.004377, allocations: 4 kB / 321 MB, free: 3.711 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.866e-05/0.004396, allocations: 30.56 kB / 321 MB, free: 3.672 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 9.02e-07/0.004397, allocations: 0 / 321 MB, free: 3.672 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001657/0.004563, allocations: 93.53 kB / 321.1 MB, free: 3.574 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.004611, allocations: 51.41 kB / 321.1 MB, free: 3.512 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.86e-05/0.00467, allocations: 105.9 kB / 321.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.004681, allocations: 33.69 kB / 321.3 MB, free: 3.359 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.734e-05/0.004709, allocations: 84.14 kB / 321.3 MB, free: 3.273 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.004721, allocations: 7.953 kB / 321.3 MB, free: 3.266 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.468e-05/0.004746, allocations: 17.66 kB / 321.4 MB, free: 3.242 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/0.004819, allocations: 322.8 kB / 321.7 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.039e-05/0.00483, allocations: 0 / 321.7 MB, free: 2.918 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.929e-05/0.004849, allocations: 17.72 kB / 321.7 MB, free: 2.895 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.865e-05/0.004878, allocations: 29.66 kB / 321.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.00488, allocations: 0 / 321.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.524e-05/0.004935, allocations: 57.62 kB / 321.8 MB, free: 2.797 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.004947, allocations: 4 kB / 321.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.004952, allocations: 0 / 321.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.004964, allocations: 11.88 kB / 321.8 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.592e-05/0.005, allocations: 4 kB / 321.8 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.005004, allocations: 0 / 321.8 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.039e-05/0.005015, allocations: 0 / 321.8 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.436e-06/0.005018, allocations: 448 / 321.8 MB, free: 2.777 MB / 282.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 5.986e-05/0.005078, allocations: 121.8 kB / 321.9 MB, free: 2.648 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.752e-05/0.005146, allocations: 65.66 kB / 322 MB, free: 2.578 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.368e-05/0.005169, allocations: 12.17 kB / 322 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.005174, allocations: 7.938 kB / 322 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.005179, allocations: 0 / 322 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.005182, allocations: 0 / 322 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.507e-05/0.005247, allocations: 132.6 kB / 322.1 MB, free: 2.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.005247, allocations: 0 / 322.1 MB, free: 2.383 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.298e-06/0.005252, allocations: 0 / 322.1 MB, free: 2.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.005253, allocations: 0 / 322.1 MB, free: 2.383 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.005259, allocations: 4 kB / 322.1 MB, free: 2.379 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.005262, allocations: 3.938 kB / 322.1 MB, free: 2.375 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.005263, allocations: 0 / 322.1 MB, free: 2.375 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.262e-05/0.005345, allocations: 93.11 kB / 322.2 MB, free: 2.266 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.135e-06/0.005353, allocations: 3.953 kB / 322.2 MB, free: 2.262 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.005368, allocations: 4 kB / 322.2 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.706e-05/0.005395, allocations: 7.938 kB / 322.3 MB, free: 2.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.054e-06/0.005397, allocations: 0 / 322.3 MB, free: 2.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.005404, allocations: 4 kB / 322.3 MB, free: 2.246 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.884e-05/0.005433, allocations: 87.27 kB / 322.3 MB, free: 2.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005433, allocations: 0 / 322.3 MB, free: 2.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001284/0.005561, allocations: 4 kB / 322.3 MB, free: 2.156 MB / 282.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.0003577/0.005919, allocations: 0.6478 MB / 323 MB, free: 1.48 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.809e-05/0.006007, allocations: 35.86 kB / 323 MB, free: 1.445 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.006009, allocations: 0 / 323 MB, free: 1.445 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.61e-07/0.00601, allocations: 0 / 323 MB, free: 1.445 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.006466, allocations: 0.7258 MB / 323.8 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007373/0.007203, allocations: 1.155 MB / 324.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.136e-05/0.007245, allocations: 67.33 kB / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.269e-05/0.007267, allocations: 192 / 325 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.933e-05/0.007307, allocations: 20.88 kB / 325 MB, free: 15.34 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.007308, allocations: 0 / 325 MB, free: 15.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.02442, allocations: 2.375 MB / 327.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.833/6.858, allocations: 2.922 kB / 327.4 MB, free: 13.11 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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: 8.676655963994563]