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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 104.9 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00181/0.00181, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.3 MB, free: 9.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.67 kB / 306.4 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1369, allocations: 50.52 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00423/0.1412, allocations: 1.51 MB / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003016/0.1415, allocations: 35.91 kB / 358.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1416, allocations: 0 / 358.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.421e-05/0.1418, allocations: 7.922 kB / 358.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.103e-05/0.1419, allocations: 0 / 358.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.1423, allocations: 27.91 kB / 358.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.1424, allocations: 35.92 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.1426, allocations: 12 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.865e-05/0.1427, allocations: 19.91 kB / 358.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.96e-05/0.1427, allocations: 15.92 kB / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.1428, allocations: 4 kB / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.476e-05/0.1428, allocations: 0 / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.587e-05/0.1428, allocations: 11.94 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.531e-05/0.1429, allocations: 15.92 kB / 358.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.143, allocations: 39.88 kB / 358.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.617e-06/0.143, allocations: 0 / 358.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1431, allocations: 4 kB / 358.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1431, allocations: 0 / 358.6 MB, free: 12.46 MB / 302.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.0006957/0.1438, allocations: 357.9 kB / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.42e-05/0.1438, allocations: 8.031 kB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.505e-05/0.1439, allocations: 34.73 kB / 359 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.798e-05/0.144, allocations: 8.844 kB / 359 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.1442, allocations: 184.2 kB / 359.2 MB, free: 11.78 MB / 302.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.0002696/0.1445, allocations: 38.25 kB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/0.1445, allocations: 4.375 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004214/0.145, allocations: 127.6 kB / 359.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.145, allocations: 0 / 359.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.145, allocations: 0 / 359.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.145, allocations: 4 kB / 359.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.145e-05/0.1451, allocations: 23.92 kB / 359.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000233/0.1453, allocations: 161.7 kB / 359.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.1456, allocations: 135.8 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.702e-05/0.1457, allocations: 28.84 kB / 359.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.1457, allocations: 0 / 359.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.1457, allocations: 46.38 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.513e-06/0.1457, allocations: 0 / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002568/0.146, allocations: 65.69 kB / 359.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.227e-05/0.1461, allocations: 63.39 kB / 359.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.592e-05/0.1462, allocations: 113.7 kB / 360 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.1462, allocations: 29.7 kB / 360 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.1463, allocations: 84.12 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.1463, allocations: 4 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.567e-05/0.1464, allocations: 17.72 kB / 360.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1465, allocations: 318.8 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.387e-05/0.1465, allocations: 8 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.042e-05/0.1466, allocations: 40.23 kB / 360.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.205e-05/0.1466, allocations: 52.22 kB / 360.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1467, allocations: 0 / 360.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001347/0.1468, allocations: 73.53 kB / 360.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.1468, allocations: 11.94 kB / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1468, allocations: 48 / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.1469, allocations: 7.984 kB / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.141e-05/0.147, allocations: 7.938 kB / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.147, allocations: 160 / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.44e-05/0.147, allocations: 4 kB / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.147, allocations: 7.984 kB / 360.6 MB, free: 10.14 MB / 302.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.0001335/0.1472, allocations: 125.9 kB / 360.8 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.1473, allocations: 61.58 kB / 360.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.545e-05/0.1473, allocations: 12.39 kB / 360.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1474, allocations: 4 kB / 360.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.1474, allocations: 0 / 360.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1474, allocations: 0 / 360.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001722/0.1476, allocations: 161.7 kB / 361 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1476, allocations: 0 / 361 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.414e-06/0.1476, allocations: 0 / 361 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1476, allocations: 7.938 kB / 361 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.1476, allocations: 4 kB / 361 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1476, allocations: 0 / 361 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1476, allocations: 0 / 361 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.1478, allocations: 96.95 kB / 361.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.1478, allocations: 88.98 kB / 361.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.1479, allocations: 0 / 361.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.852e-05/0.1479, allocations: 4 kB / 361.2 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-06/0.1479, allocations: 0 / 361.2 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.148, allocations: 8 kB / 361.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.538e-05/0.148, allocations: 83.27 kB / 361.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.148, allocations: 7.938 kB / 361.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002167/0.1482, allocations: 8 kB / 361.3 MB, free: 9.371 MB / 302.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.0005435/0.1488, allocations: 0.6515 MB / 362 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.1489, allocations: 31.92 kB / 362 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1489, allocations: 0 / 362 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.32e-07/0.1489, allocations: 0 / 362 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006984/0.1496, allocations: 0.7215 MB / 362.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.1508, allocations: 1.22 MB / 363.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.151, allocations: 0.6888 MB / 364.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.649e-05/0.1511, allocations: 7.938 kB / 364.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.069e-05/0.1511, allocations: 15.05 kB / 364.6 MB, free: 5.855 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1511, allocations: 0 / 364.6 MB, free: 5.855 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.1682, allocations: 1.504 MB / 366.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.1684, allocations: 231.4 kB / 366.4 MB, free: 4.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/1.998, allocations: 3.25 kB / 366.4 MB, free: 4.227 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches