Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.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.0009304/0.0009304, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009297/0.0009297, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8859/0.8859, allocations: 177.1 MB / 204.2 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.TimeBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.327e-05/1.475e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse): time 0.001942/0.001957, allocations: 1.499 MB / 326.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006655/0.002622, allocations: 470.7 kB / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.616e-05/0.002688, allocations: 3.938 kB / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.057e-05/0.002719, allocations: 3.938 kB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.002874, allocations: 11.92 kB / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000161/0.003035, allocations: 39.83 kB / 326.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.76e-05/0.003122, allocations: 51.8 kB / 326.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.054e-05/0.003213, allocations: 15.98 kB / 326.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.231e-05/0.003285, allocations: 19.98 kB / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.653e-05/0.003322, allocations: 31.83 kB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.003345, allocations: 4 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.508e-06/0.003354, allocations: 4 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.96e-05/0.003374, allocations: 8 kB / 326.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.687e-05/0.003401, allocations: 15.92 kB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.003506, allocations: 51.8 kB / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.003508, allocations: 4 kB / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.003509, allocations: 0 / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.003513, allocations: 0 / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004345/0.003947, allocations: 305.2 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.003988, allocations: 12.03 kB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.361e-05/0.004022, allocations: 34.75 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.395e-05/0.004046, allocations: 8.891 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.004218, allocations: 125.7 kB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.004232, allocations: 8.375 kB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.00424, allocations: 384 / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.004516, allocations: 151.7 kB / 327.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.004525, allocations: 192 / 327.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.004537, allocations: 8.125 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.004542, allocations: 3.984 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.452e-05/0.004606, allocations: 31.97 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001171/0.004723, allocations: 124.8 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.00485, allocations: 50.62 kB / 327.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.279e-05/0.004893, allocations: 28.84 kB / 327.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.004914, allocations: 3.938 kB / 327.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.004931, allocations: 38.56 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 8.41e-07/0.004932, allocations: 0 / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001945/0.005127, allocations: 93.55 kB / 327.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.005186, allocations: 59.41 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.685e-05/0.005253, allocations: 109.8 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.005266, allocations: 25.7 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.597e-05/0.005302, allocations: 88.14 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.221e-05/0.005314, allocations: 0 / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.00534, allocations: 21.66 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.003e-05/0.00543, allocations: 314.8 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.11e-05/0.005441, allocations: 3.938 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-06/0.005448, allocations: 8 kB / 328.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.247e-05/0.005471, allocations: 12.86 kB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.005473, allocations: 0 / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.444e-05/0.005517, allocations: 41.66 kB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.00553, allocations: 4 kB / 328.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.005535, allocations: 4 kB / 328.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.005549, allocations: 3.938 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.616e-05/0.005585, allocations: 0 / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.005593, allocations: 8.078 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.433e-05/0.005608, allocations: 4.25 kB / 328.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-06/0.005612, allocations: 3.938 kB / 328.5 MB, free: 11.81 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.631e-05/0.005688, allocations: 109.8 kB / 328.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-05/0.005767, allocations: 65.69 kB / 328.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.244e-05/0.0058, allocations: 16.42 kB / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.005803, allocations: 3.938 kB / 328.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.005808, allocations: 0 / 328.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.005811, allocations: 0 / 328.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.387e-05/0.005885, allocations: 128.7 kB / 328.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.005886, allocations: 11.94 kB / 328.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.181e-05/0.005908, allocations: 4 kB / 328.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.00591, allocations: 0 / 328.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.005917, allocations: 3.984 kB / 328.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.005919, allocations: 3.938 kB / 328.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.005922, allocations: 4 kB / 328.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.646e-05/0.006018, allocations: 93.06 kB / 328.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.006032, allocations: 15.88 kB / 328.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.006045, allocations: 0 / 328.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.72e-05/0.006092, allocations: 23.92 kB / 329 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-06/0.006095, allocations: 0 / 329 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.006098, allocations: 0 / 329 MB, free: 11.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.523e-05/0.006134, allocations: 91.27 kB / 329.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006134, allocations: 3.938 kB / 329.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001206/0.006254, allocations: 4 kB / 329.1 MB, free: 11.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (pulse.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0003466/0.006601, allocations: 0.6515 MB / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.259e-05/0.006693, allocations: 28.25 kB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.006695, allocations: 0 / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.91e-07/0.006696, allocations: 0 / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.006943, allocations: 47.88 kB / 329.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007038/0.007647, allocations: 1.142 MB / 330.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.614e-05/0.007683, allocations: 71.28 kB / 331 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.349e-05/0.007697, allocations: 4 kB / 331 MB, free: 9.082 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.552e-05/0.007732, allocations: 20.58 kB / 331 MB, free: 9.062 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.007733, allocations: 0 / 331 MB, free: 9.062 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01504/0.02277, allocations: 2.286 MB / 333.3 MB, free: 6.906 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.574/6.596, allocations: 9.688 kB / 333.3 MB, free: 6.902 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TimeBasedPulse/TimeBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.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: 8.23749227821827]