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.001315/0.001315, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.001524/0.001524, allocations: 214.3 kB / 23.75 MB, free: 4.672 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.389/1.389, allocations: 230.5 MB / 257.4 MB, free: 7.965 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.002034/0.002034, allocations: 67.89 kB / 377.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2807, allocations: 53.41 MB / 431.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002721/0.2834, allocations: 1.462 MB / 432.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002092/0.2836, allocations: 39.91 kB / 432.7 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.358e-05/0.2837, allocations: 0 / 432.7 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.053e-05/0.2837, allocations: 7.922 kB / 432.7 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.247e-05/0.2837, allocations: 3.938 kB / 432.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002281/0.284, allocations: 27.97 kB / 432.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.81e-05/0.2841, allocations: 35.92 kB / 432.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.418e-05/0.2842, allocations: 15.78 kB / 432.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.067e-05/0.2842, allocations: 19.92 kB / 432.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.432e-05/0.2843, allocations: 27.86 kB / 432.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.2843, allocations: 0 / 432.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.566e-06/0.2843, allocations: 4 kB / 432.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.902e-05/0.2843, allocations: 15.92 kB / 432.8 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.579e-05/0.2844, allocations: 11.94 kB / 432.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.2845, allocations: 43.8 kB / 432.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2845, allocations: 0 / 432.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.2845, allocations: 4 kB / 432.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.2845, allocations: 0 / 432.9 MB, free: 4.945 MB / 334.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.0004336/0.2849, allocations: 272.2 kB / 433.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2849, allocations: 8.031 kB / 433.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.074e-05/0.285, allocations: 42.75 kB / 433.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.762e-05/0.285, allocations: 8.828 kB / 433.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.2852, allocations: 122.5 kB / 433.3 MB, free: 4.438 MB / 334.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.0001033/0.2853, allocations: 34.25 kB / 433.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.2853, allocations: 12.31 kB / 433.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/0.2856, allocations: 127.6 kB / 433.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.2856, allocations: 0 / 433.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.2856, allocations: 8 kB / 433.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.748e-06/0.2857, allocations: 0 / 433.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.546e-05/0.2857, allocations: 15.94 kB / 433.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.2859, allocations: 132.7 kB / 433.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.286, allocations: 62.67 kB / 433.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.201e-05/0.2861, allocations: 28.8 kB / 433.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.2861, allocations: 0 / 433.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.2861, allocations: 34.5 kB / 433.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.52e-07/0.2861, allocations: 0 / 433.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002053/0.2863, allocations: 77.61 kB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.2864, allocations: 59.41 kB / 433.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.355e-05/0.2865, allocations: 105.8 kB / 434 MB, free: 3.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.2865, allocations: 33.7 kB / 434 MB, free: 3.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.898e-05/0.2865, allocations: 80.14 kB / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.382e-05/0.2865, allocations: 3.953 kB / 434.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.2866, allocations: 21.72 kB / 434.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.2867, allocations: 318.8 kB / 434.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.792e-05/0.2867, allocations: 8 kB / 434.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.014e-05/0.2868, allocations: 44.28 kB / 434.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.897e-05/0.2868, allocations: 44.17 kB / 434.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2868, allocations: 4 kB / 434.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.89e-05/0.2869, allocations: 73.58 kB / 434.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.287, allocations: 7.938 kB / 434.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.287, allocations: 4 kB / 434.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.287, allocations: 0 / 434.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.21e-05/0.287, allocations: 8.375 kB / 434.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.287, allocations: 4 kB / 434.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.408e-05/0.287, allocations: 4 kB / 434.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.2871, allocations: 4 kB / 434.7 MB, free: 2.934 MB / 334.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 9.259e-05/0.2871, allocations: 126 kB / 434.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.985e-05/0.2872, allocations: 65.66 kB / 434.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.261e-05/0.2873, allocations: 8.062 kB / 434.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.2873, allocations: 3.938 kB / 434.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2873, allocations: 0 / 434.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2873, allocations: 0 / 434.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.2874, allocations: 140.6 kB / 435 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2874, allocations: 0 / 435 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.001e-06/0.2874, allocations: 0 / 435 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.2874, allocations: 7.938 kB / 435 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.2874, allocations: 4 kB / 435 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2874, allocations: 0 / 435 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2874, allocations: 4 kB / 435 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.2875, allocations: 89.06 kB / 435.1 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.014e-05/0.2875, allocations: 3.938 kB / 435.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.2876, allocations: 4 kB / 435.1 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.314e-05/0.2876, allocations: 4 kB / 435.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.384e-06/0.2876, allocations: 8 kB / 435.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.2876, allocations: 3.984 kB / 435.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.411e-05/0.2877, allocations: 79.28 kB / 435.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2877, allocations: 0 / 435.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001848/0.2878, allocations: 15.94 kB / 435.2 MB, free: 2.297 MB / 334.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.0005158/0.2884, allocations: 0.6519 MB / 435.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001184/0.2885, allocations: 31.92 kB / 435.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.2885, allocations: 0 / 435.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.2885, allocations: 0 / 435.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.2892, allocations: 0.7175 MB / 436.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.2903, allocations: 1.236 MB / 437.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.2906, allocations: 0.6846 MB / 438.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.372e-05/0.2907, allocations: 4 kB / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.128e-05/0.2907, allocations: 15.44 kB / 438.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2907, allocations: 0 / 438.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.3179, allocations: 1.829 MB / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.91, allocations: 7.547 kB / 440.4 MB, free: 13.06 MB / 350.1 MB " [Timeout remaining time 649] (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/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_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: 13.217586596030742]