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.001795/0.001795, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002142/0.002142, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.416/1.416, allocations: 230.6 MB / 257.5 MB, free: 7.816 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 51.92 kB / 377.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2711, allocations: 53.37 MB / 431.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002676/0.2737, allocations: 1.455 MB / 432.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001998/0.2739, allocations: 43.89 kB / 432.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.607e-05/0.274, allocations: 3.938 kB / 432.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.653e-05/0.274, allocations: 0 / 432.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.034e-05/0.2741, allocations: 3.938 kB / 432.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.2743, allocations: 27.97 kB / 432.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.387e-05/0.2744, allocations: 47.78 kB / 432.7 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.445e-05/0.2745, allocations: 15.8 kB / 432.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.334e-05/0.2746, allocations: 15.92 kB / 432.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.988e-05/0.2746, allocations: 19.91 kB / 432.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.2746, allocations: 0 / 432.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.122e-05/0.2746, allocations: 4 kB / 432.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.999e-05/0.2746, allocations: 8 kB / 432.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.634e-05/0.2747, allocations: 19.92 kB / 432.7 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.2748, allocations: 39.81 kB / 432.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2748, allocations: 4 kB / 432.8 MB, free: 4.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2748, allocations: 0 / 432.8 MB, free: 4.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.2748, allocations: 0 / 432.8 MB, free: 4.98 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.0004524/0.2752, allocations: 276.1 kB / 433.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.2753, allocations: 8.031 kB / 433.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.2753, allocations: 34.75 kB / 433.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.2754, allocations: 8.891 kB / 433.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.2756, allocations: 122.4 kB / 433.2 MB, free: 4.477 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.0001209/0.2757, allocations: 42.25 kB / 433.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.2757, allocations: 384 / 433.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.276, allocations: 131.6 kB / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.276, allocations: 0 / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.2761, allocations: 0 / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.2761, allocations: 3.938 kB / 433.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.206e-05/0.2761, allocations: 19.92 kB / 433.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.2763, allocations: 136.7 kB / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001762/0.2765, allocations: 54.69 kB / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.066e-05/0.2765, allocations: 16.86 kB / 433.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.2765, allocations: 3.984 kB / 433.6 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.2766, allocations: 42.44 kB / 433.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.2766, allocations: 4 kB / 433.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002261/0.2768, allocations: 69.69 kB / 433.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.2768, allocations: 55.41 kB / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.808e-05/0.2769, allocations: 110 kB / 433.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.277, allocations: 29.7 kB / 433.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.682e-05/0.277, allocations: 84.14 kB / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.277, allocations: 3.953 kB / 434 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.9e-05/0.2771, allocations: 25.7 kB / 434 MB, free: 3.535 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.2772, allocations: 314.8 kB / 434.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.142e-05/0.2772, allocations: 11.98 kB / 434.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.706e-05/0.2773, allocations: 44.22 kB / 434.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.622e-05/0.2773, allocations: 48.23 kB / 434.4 MB, free: 3.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2773, allocations: 0 / 434.4 MB, free: 3.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001023/0.2774, allocations: 69.58 kB / 434.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2775, allocations: 11.94 kB / 434.5 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2775, allocations: 4.156 kB / 434.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.2775, allocations: 3.938 kB / 434.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.797e-05/0.2775, allocations: 15.98 kB / 434.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.2775, allocations: 0 / 434.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.316e-05/0.2776, allocations: 0 / 434.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-06/0.2776, allocations: 4 kB / 434.6 MB, free: 2.973 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 0.0001046/0.2777, allocations: 117.9 kB / 434.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.2778, allocations: 65.56 kB / 434.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.2778, allocations: 8.062 kB / 434.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.2778, allocations: 11.88 kB / 434.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2778, allocations: 4 kB / 434.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2778, allocations: 0 / 434.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.2779, allocations: 124.8 kB / 434.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2779, allocations: 0 / 434.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.001e-06/0.2779, allocations: 0 / 434.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.2779, allocations: 7.938 kB / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.2779, allocations: 3.984 kB / 434.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.2779, allocations: 0 / 434.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2779, allocations: 0 / 434.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/0.2781, allocations: 93.27 kB / 435 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.177e-05/0.2781, allocations: 7.938 kB / 435 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.2781, allocations: 12 kB / 435 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.176e-05/0.2782, allocations: 3.984 kB / 435 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.993e-06/0.2782, allocations: 0 / 435 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.2782, allocations: 4 kB / 435 MB, free: 2.438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.664e-05/0.2782, allocations: 83.28 kB / 435.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2782, allocations: 0 / 435.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001974/0.2784, allocations: 12 kB / 435.1 MB, free: 2.344 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.0005402/0.279, allocations: 0.6398 MB / 435.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001228/0.2791, allocations: 40.11 kB / 435.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.2791, allocations: 0 / 435.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.2791, allocations: 0 / 435.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.2799, allocations: 0.7181 MB / 436.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.281, allocations: 1.226 MB / 437.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.062e-05/0.2811, allocations: 63.34 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.91e-05/0.2811, allocations: 4.25 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.729e-05/0.2812, allocations: 19.44 kB / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2812, allocations: 0 / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03877/0.3199, allocations: 2.267 MB / 440.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.8, allocations: 21.19 kB / 440.1 MB, free: 13.32 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.16883279569447]