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.001466/0.001466, allocations: 116.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001663/0.001664, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.4 MB / 246.4 MB, free: 10.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 60.47 kB / 306.6 MB, free: 0.8789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1315, allocations: 50.53 MB / 357.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003828/0.1354, allocations: 1.5 MB / 358.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002324/0.1356, allocations: 39.89 kB / 358.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.114e-05/0.1357, allocations: 0 / 358.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.305e-05/0.1358, allocations: 3.938 kB / 358.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.642e-05/0.1359, allocations: 4 kB / 358.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003273/0.1362, allocations: 39.34 kB / 358.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.1364, allocations: 39.92 kB / 358.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.1365, allocations: 11.98 kB / 358.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.047e-05/0.1366, allocations: 15.94 kB / 358.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5e-05/0.1366, allocations: 19.91 kB / 358.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.221e-05/0.1367, allocations: 4 kB / 358.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.368e-05/0.1367, allocations: 4 kB / 358.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.73e-05/0.1367, allocations: 11.92 kB / 358.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.093e-05/0.1368, allocations: 15.94 kB / 358.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.1369, allocations: 43.88 kB / 358.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1369, allocations: 0 / 358.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1369, allocations: 4 kB / 358.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1369, allocations: 0 / 358.8 MB, free: 12.6 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.0005424/0.1375, allocations: 355.6 kB / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.1375, allocations: 12.03 kB / 359.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.51e-05/0.1376, allocations: 30.75 kB / 359.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.183e-05/0.1377, allocations: 8.844 kB / 359.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.138, allocations: 180.2 kB / 359.4 MB, free: 11.93 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.0002066/0.1382, allocations: 42.19 kB / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.1382, allocations: 8.375 kB / 359.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.1386, allocations: 123.6 kB / 359.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1386, allocations: 0 / 359.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.1386, allocations: 0 / 359.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1386, allocations: 4 kB / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.871e-05/0.1387, allocations: 15.94 kB / 359.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001839/0.1389, allocations: 161.7 kB / 359.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.1392, allocations: 143.8 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.976e-05/0.1392, allocations: 24.86 kB / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.1392, allocations: 0 / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.1393, allocations: 38.48 kB / 360 MB, free: 11.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.282e-06/0.1393, allocations: 3.938 kB / 360 MB, free: 11.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002578/0.1396, allocations: 69.69 kB / 360 MB, free: 11.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.847e-05/0.1396, allocations: 59.41 kB / 360.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.959e-05/0.1397, allocations: 113.7 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.1398, allocations: 29.7 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.552e-05/0.1398, allocations: 84.14 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.1398, allocations: 0 / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/0.1399, allocations: 21.7 kB / 360.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.14, allocations: 318.8 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.114e-05/0.1401, allocations: 11.98 kB / 360.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.352e-05/0.1401, allocations: 44.22 kB / 360.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.11e-05/0.1402, allocations: 48.23 kB / 360.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1402, allocations: 4 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001139/0.1403, allocations: 69.53 kB / 360.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.1403, allocations: 10.75 kB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.1403, allocations: 4 kB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1404, allocations: 448 / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.801e-05/0.1404, allocations: 11.92 kB / 360.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.1404, allocations: 0 / 360.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.885e-05/0.1405, allocations: 16.16 kB / 360.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.1405, allocations: 4 kB / 360.9 MB, free: 10.28 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.0001003/0.1406, allocations: 121.8 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.1407, allocations: 65.56 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.099e-05/0.1408, allocations: 7.969 kB / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1408, allocations: 0 / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1408, allocations: 0 / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1408, allocations: 0 / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.1409, allocations: 157.7 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.1409, allocations: 4 kB / 361.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.806e-06/0.141, allocations: 4 kB / 361.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.141, allocations: 7.875 kB / 361.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.141, allocations: 3.984 kB / 361.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.141, allocations: 0 / 361.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.141, allocations: 0 / 361.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/0.1412, allocations: 96.97 kB / 361.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.1412, allocations: 81.05 kB / 361.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.1413, allocations: 7.938 kB / 361.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.296e-05/0.1413, allocations: 7.984 kB / 361.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-06/0.1414, allocations: 0 / 361.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.1414, allocations: 8 kB / 361.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001551/0.1415, allocations: 79.28 kB / 361.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1415, allocations: 0 / 361.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.1418, allocations: 12 kB / 361.5 MB, free: 9.52 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.0009297/0.1427, allocations: 0.6516 MB / 362.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001707/0.1429, allocations: 31.92 kB / 362.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.1429, allocations: 0 / 362.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.1429, allocations: 0 / 362.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.1439, allocations: 0.7301 MB / 362.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.1456, allocations: 1.23 MB / 364.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.1461, allocations: 0.6807 MB / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.616e-05/0.1462, allocations: 3.984 kB / 364.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.4e-05/0.1462, allocations: 15.44 kB / 364.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1462, allocations: 0 / 364.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02724/0.1735, allocations: 1.566 MB / 366.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002695/0.1738, allocations: 223.2 kB / 366.6 MB, free: 4.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.158/2.332, allocations: 6.953 kB / 366.7 MB, free: 4.332 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