Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001874/0.001874, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002251/0.002251, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002548/0.002548, allocations: 63.91 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1324, allocations: 53.33 MB / 426.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003805/0.1362, allocations: 1.435 MB / 428.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002589/0.1365, allocations: 39.91 kB / 428.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.374e-05/0.1366, allocations: 3.938 kB / 428.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.205e-05/0.1366, allocations: 7.875 kB / 428.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.76e-05/0.1367, allocations: 11.92 kB / 428.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.137, allocations: 23.97 kB / 428.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001301/0.1371, allocations: 39.91 kB / 428.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.1372, allocations: 11.98 kB / 428.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.951e-05/0.1373, allocations: 11.94 kB / 428.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.716e-05/0.1374, allocations: 19.92 kB / 428.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.1374, allocations: 4 kB / 428.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.219e-05/0.1374, allocations: 4 kB / 428.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.1374, allocations: 15.97 kB / 428.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.442e-05/0.1375, allocations: 23.81 kB / 428.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.1376, allocations: 39.81 kB / 428.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1376, allocations: 4 kB / 428.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1376, allocations: 0 / 428.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1376, allocations: 3.984 kB / 428.4 MB, free: 3.289 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.0006539/0.1383, allocations: 347.4 kB / 428.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.1383, allocations: 8.031 kB / 428.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.037e-05/0.1384, allocations: 38.75 kB / 428.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.1384, allocations: 4.891 kB / 428.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.1387, allocations: 184.3 kB / 428.9 MB, free: 2.621 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.0001426/0.1389, allocations: 38.25 kB / 429 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.079e-05/0.1389, allocations: 4.375 kB / 429 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004074/0.1393, allocations: 131.5 kB / 429.1 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1393, allocations: 4 kB / 429.1 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.1393, allocations: 0 / 429.1 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.1393, allocations: 3.984 kB / 429.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.089e-05/0.1394, allocations: 19.98 kB / 429.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002163/0.1396, allocations: 165.6 kB / 429.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.1399, allocations: 135.7 kB / 429.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.203e-05/0.14, allocations: 20.84 kB / 429.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.14, allocations: 4 kB / 429.4 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.14, allocations: 38.5 kB / 429.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.613e-06/0.14, allocations: 0 / 429.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002814/0.1403, allocations: 73.62 kB / 429.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.074e-05/0.1404, allocations: 55.41 kB / 429.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.1405, allocations: 109.8 kB / 429.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.1405, allocations: 25.7 kB / 429.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.1406, allocations: 84.14 kB / 429.8 MB, free: 1.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.1406, allocations: 11.95 kB / 429.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.1407, allocations: 21.7 kB / 429.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.1408, allocations: 318.7 kB / 430.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.539e-05/0.1409, allocations: 12 kB / 430.2 MB, free: 1.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.528e-05/0.1409, allocations: 36.28 kB / 430.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.999e-05/0.141, allocations: 48.23 kB / 430.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.141, allocations: 0 / 430.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000159/0.1412, allocations: 77.67 kB / 430.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.1412, allocations: 15.94 kB / 430.4 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1412, allocations: 0 / 430.4 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.1412, allocations: 4 kB / 430.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.687e-05/0.1413, allocations: 11.92 kB / 430.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.1413, allocations: 0 / 430.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.114e-05/0.1413, allocations: 4 kB / 430.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.1413, allocations: 0 / 430.4 MB, free: 0.9805 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.0001243/0.1415, allocations: 116 kB / 430.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.1416, allocations: 69.62 kB / 430.6 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.1416, allocations: 7.969 kB / 430.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1416, allocations: 4 kB / 430.6 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1416, allocations: 0 / 430.6 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1416, allocations: 0 / 430.6 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.1418, allocations: 157.7 kB / 430.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1418, allocations: 3.938 kB / 430.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.967e-05/0.1418, allocations: 7.984 kB / 430.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1418, allocations: 3.938 kB / 430.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.1418, allocations: 4 kB / 430.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1418, allocations: 0 / 430.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1418, allocations: 4 kB / 430.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.142, allocations: 85.08 kB / 430.8 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.116e-05/0.1421, allocations: 85.05 kB / 430.9 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.1421, allocations: 4 kB / 430.9 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.224e-05/0.1422, allocations: 7.984 kB / 430.9 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.956e-06/0.1422, allocations: 0 / 430.9 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.1422, allocations: 0 / 430.9 MB, free: 332 kB / 350.1 MB Notification: Performance of sorting global known variables: time 6.405e-05/0.1422, allocations: 91.22 kB / 431 MB, free: 240 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1422, allocations: 4 kB / 431 MB, free: 236 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.1426, allocations: 4 kB / 431 MB, free: 232 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.0007309/0.1433, allocations: 0.6631 MB / 431.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.1435, allocations: 36.31 kB / 431.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1435, allocations: 4.125 kB / 431.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.91e-07/0.1435, allocations: 0 / 431.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009529/0.1444, allocations: 0.7211 MB / 432.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.1461, allocations: 1.222 MB / 433.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.1465, allocations: 0.6846 MB / 434.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.831e-05/0.1466, allocations: 0 / 434.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.468e-05/0.1466, allocations: 15.44 kB / 434.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1466, allocations: 0 / 434.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.1743, allocations: 1.707 MB / 436.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.022/8.197, allocations: 8.062 kB / 436.1 MB, free: 11.12 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.864737765863538]