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.001838/0.001838, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002386/0.002386, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.457/1.457, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001506/0.001506, allocations: 55.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1184, allocations: 53.34 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002929/0.1214, allocations: 1.432 MB / 427.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001971/0.1216, allocations: 43.84 kB / 427.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.048e-05/0.1216, allocations: 3.938 kB / 427.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.119e-05/0.1217, allocations: 3.938 kB / 427.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.639e-05/0.1217, allocations: 7.922 kB / 427.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.1219, allocations: 23.97 kB / 427.8 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.1221, allocations: 47.89 kB / 427.9 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.824e-05/0.1221, allocations: 4 kB / 427.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.831e-05/0.1222, allocations: 19.92 kB / 427.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.98e-05/0.1223, allocations: 19.92 kB / 427.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.1223, allocations: 4 kB / 427.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.037e-05/0.1223, allocations: 4 kB / 427.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.337e-05/0.1223, allocations: 11.98 kB / 427.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.135e-05/0.1223, allocations: 23.86 kB / 428 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.1225, allocations: 39.77 kB / 428 MB, free: 3.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1225, allocations: 0 / 428 MB, free: 3.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1225, allocations: 0 / 428 MB, free: 3.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1225, allocations: 0 / 428 MB, free: 3.094 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.0005071/0.123, allocations: 351.4 kB / 428.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.123, allocations: 16.03 kB / 428.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.566e-05/0.1231, allocations: 42.67 kB / 428.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.1231, allocations: 8.891 kB / 428.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.1233, allocations: 172.3 kB / 428.6 MB, free: 2.418 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.0001112/0.1235, allocations: 46.25 kB / 428.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.1235, allocations: 384 / 428.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.1238, allocations: 131.6 kB / 428.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.1238, allocations: 0 / 428.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.1238, allocations: 3.984 kB / 428.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1238, allocations: 0 / 428.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.264e-05/0.1239, allocations: 12 kB / 428.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000202/0.1241, allocations: 169.6 kB / 428.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.1243, allocations: 135.7 kB / 429.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.701e-05/0.1244, allocations: 24.86 kB / 429.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.1244, allocations: 0 / 429.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.1244, allocations: 38.5 kB / 429.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.91e-07/0.1244, allocations: 0 / 429.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002265/0.1246, allocations: 73.67 kB / 429.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.1247, allocations: 63.34 kB / 429.3 MB, free: 1.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.1248, allocations: 105.8 kB / 429.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.1248, allocations: 29.7 kB / 429.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.1249, allocations: 84.14 kB / 429.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.1249, allocations: 3.953 kB / 429.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.1249, allocations: 21.72 kB / 429.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1251, allocations: 322.8 kB / 429.8 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.794e-05/0.1251, allocations: 4 kB / 429.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.165e-05/0.1252, allocations: 48.27 kB / 429.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.96e-05/0.1252, allocations: 48.23 kB / 429.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1252, allocations: 0 / 429.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001302/0.1254, allocations: 77.52 kB / 430 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1254, allocations: 7.938 kB / 430 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1254, allocations: 4 kB / 430 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.1254, allocations: 0 / 430 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.846e-05/0.1255, allocations: 4 kB / 430 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.1255, allocations: 4 kB / 430 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.712e-05/0.1255, allocations: 3.938 kB / 430 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.1255, allocations: 7.984 kB / 430 MB, free: 0.7773 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.0001019/0.1256, allocations: 123.9 kB / 430.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.1257, allocations: 66.06 kB / 430.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.597e-05/0.1258, allocations: 3.969 kB / 430.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1258, allocations: 4 kB / 430.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1258, allocations: 0 / 430.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1258, allocations: 96 / 430.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.1259, allocations: 165.7 kB / 430.4 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.1259, allocations: 3.984 kB / 430.4 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.843e-06/0.1259, allocations: 0 / 430.4 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1259, allocations: 3.938 kB / 430.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-06/0.1259, allocations: 0 / 430.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1259, allocations: 4 kB / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.1259, allocations: 7.984 kB / 430.4 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.1261, allocations: 89.02 kB / 430.5 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.863e-05/0.1261, allocations: 81.05 kB / 430.6 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.1262, allocations: 8 kB / 430.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.409e-05/0.1262, allocations: 0 / 430.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.296e-06/0.1262, allocations: 0 / 430.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.1262, allocations: 7.984 kB / 430.6 MB, free: 116 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.135e-05/0.1263, allocations: 91.22 kB / 430.7 MB, free: 24 kB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1263, allocations: 0 / 430.7 MB, free: 24 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002034/0.1265, allocations: 8 kB / 430.7 MB, free: 16 kB / 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.0006274/0.1271, allocations: 0.6553 MB / 431.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001354/0.1272, allocations: 35.98 kB / 431.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1272, allocations: 0 / 431.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.096e-06/0.1272, allocations: 4 kB / 431.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008018/0.128, allocations: 0.7105 MB / 432.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1293, allocations: 1.226 MB / 433.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.1296, allocations: 0.6884 MB / 434 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.314e-05/0.1297, allocations: 4 kB / 434 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.912e-05/0.1297, allocations: 19.44 kB / 434 MB, free: 12.49 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1297, allocations: 0 / 434 MB, free: 12.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02453/0.1542, allocations: 1.689 MB / 435.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/7.798, allocations: 7.75 kB / 435.7 MB, free: 10.94 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.365121287060902]