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.001443/0.001443, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001584/0.001584, allocations: 214 kB / 24.52 MB, free: 3.914 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.402/1.402, allocations: 230.6 MB / 258.3 MB, free: 7.734 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 47.92 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2663, allocations: 53.36 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002695/0.269, allocations: 1.452 MB / 433.3 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001873/0.2692, allocations: 39.91 kB / 433.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.614e-05/0.2692, allocations: 3.938 kB / 433.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.52e-05/0.2693, allocations: 0 / 433.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.194e-05/0.2693, allocations: 7.922 kB / 433.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.2696, allocations: 31.92 kB / 433.4 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.582e-05/0.2696, allocations: 47.83 kB / 433.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.923e-05/0.2697, allocations: 4 kB / 433.4 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.253e-05/0.2698, allocations: 23.92 kB / 433.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.781e-05/0.2698, allocations: 15.92 kB / 433.5 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.2699, allocations: 4 kB / 433.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.126e-05/0.2699, allocations: 4 kB / 433.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.2699, allocations: 11.92 kB / 433.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.2699, allocations: 15.92 kB / 433.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.837e-05/0.27, allocations: 39.88 kB / 433.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.27, allocations: 0 / 433.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.27, allocations: 4 kB / 433.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.27, allocations: 0 / 433.6 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.0004349/0.2705, allocations: 276.5 kB / 433.8 MB, free: 4.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2705, allocations: 8.031 kB / 433.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.634e-05/0.2705, allocations: 192 / 433.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.32e-05/0.2705, allocations: 38.75 kB / 433.9 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.006e-05/0.2706, allocations: 12.83 kB / 433.9 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.2708, allocations: 122.4 kB / 434 MB, free: 4.434 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 9.749e-05/0.2709, allocations: 41.25 kB / 434 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-06/0.2709, allocations: 384 / 434 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.2712, allocations: 139.4 kB / 434.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.565e-06/0.2712, allocations: 0 / 434.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2712, allocations: 7.938 kB / 434.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2712, allocations: 0 / 434.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.739e-05/0.2713, allocations: 19.97 kB / 434.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.2714, allocations: 132.7 kB / 434.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.2716, allocations: 54.69 kB / 434.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.273e-05/0.2716, allocations: 20.86 kB / 434.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.182e-06/0.2716, allocations: 0 / 434.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.2717, allocations: 50.42 kB / 434.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.2717, allocations: 0 / 434.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002019/0.2719, allocations: 65.69 kB / 434.5 MB, free: 3.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.2719, allocations: 59.41 kB / 434.6 MB, free: 3.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.518e-05/0.272, allocations: 105.8 kB / 434.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.272, allocations: 25.7 kB / 434.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.463e-05/0.2721, allocations: 88.14 kB / 434.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.2721, allocations: 7.891 kB / 434.8 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.2721, allocations: 21.7 kB / 434.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.2723, allocations: 322.8 kB / 435.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.643e-05/0.2723, allocations: 4 kB / 435.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.817e-05/0.2724, allocations: 48.2 kB / 435.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.879e-05/0.2724, allocations: 48.23 kB / 435.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2724, allocations: 0 / 435.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001049/0.2725, allocations: 77.52 kB / 435.3 MB, free: 2.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2725, allocations: 8 kB / 435.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2726, allocations: 3.938 kB / 435.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2726, allocations: 4 kB / 435.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.593e-05/0.2726, allocations: 7.984 kB / 435.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.2726, allocations: 0 / 435.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.188e-05/0.2726, allocations: 0 / 435.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-06/0.2726, allocations: 4 kB / 435.3 MB, free: 2.926 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.697e-05/0.2727, allocations: 116.9 kB / 435.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.2729, allocations: 74.16 kB / 435.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.262e-05/0.2729, allocations: 4.062 kB / 435.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.2729, allocations: 4 kB / 435.5 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2729, allocations: 4 kB / 435.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.2729, allocations: 0 / 435.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.273, allocations: 128.7 kB / 435.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.273, allocations: 0 / 435.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.878e-06/0.273, allocations: 7.938 kB / 435.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.273, allocations: 4 kB / 435.7 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.273, allocations: 3.984 kB / 435.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.273, allocations: 0 / 435.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.273, allocations: 4 kB / 435.7 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/0.2732, allocations: 93.02 kB / 435.8 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.098e-05/0.2732, allocations: 3.938 kB / 435.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.2732, allocations: 11.94 kB / 435.8 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.401e-05/0.2732, allocations: 3.984 kB / 435.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.984e-06/0.2732, allocations: 0 / 435.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.2732, allocations: 4 kB / 435.8 MB, free: 2.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.611e-05/0.2733, allocations: 83.28 kB / 435.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2733, allocations: 0 / 435.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001871/0.2735, allocations: 8 kB / 435.9 MB, free: 2.301 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.0005124/0.274, allocations: 0.6515 MB / 436.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001108/0.2741, allocations: 31.92 kB / 436.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2741, allocations: 0 / 436.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.685e-06/0.2741, allocations: 4 kB / 436.6 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.0006989/0.2748, allocations: 0.7108 MB / 437.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.2759, allocations: 1.23 MB / 438.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.614e-05/0.276, allocations: 75.33 kB / 438.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.846e-05/0.276, allocations: 0 / 438.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.276, allocations: 15.44 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.276, allocations: 0 / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.298, allocations: 1.937 MB / 440.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.7, allocations: 18.95 kB / 440.6 MB, free: 13.62 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.116985762026161]