Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.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.0008832/0.0008832, allocations: 79.69 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.0008833/0.0008833, allocations: 170 kB / 23.95 MB, free: 0.6133 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.9146/0.9146, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 324.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.791e-05/1.965e-05, allocations: 2.281 kB / 324.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep): time 0.001873/0.001892, allocations: 1.449 MB / 326 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001914/0.002084, allocations: 107.6 kB / 326.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.658e-05/0.00213, allocations: 0 / 326.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.332e-05/0.002154, allocations: 7.922 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.702e-05/0.002181, allocations: 3.938 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000184/0.002365, allocations: 23.91 kB / 326.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.244e-05/0.002437, allocations: 23.94 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.475e-05/0.002512, allocations: 7.984 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.744e-05/0.002549, allocations: 15.98 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.28e-05/0.002572, allocations: 7.922 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.002591, allocations: 4 kB / 326.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.554e-06/0.002598, allocations: 8 kB / 326.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.452e-05/0.002613, allocations: 0 / 326.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.134e-05/0.002634, allocations: 15.92 kB / 326.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.725e-05/0.002711, allocations: 19.91 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.002713, allocations: 0 / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.002714, allocations: 4 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.002718, allocations: 0 / 326.3 MB, free: 14.12 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002607/0.002979, allocations: 269.3 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.003013, allocations: 8.031 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.295e-05/0.003036, allocations: 30.75 kB / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.394e-05/0.00305, allocations: 8.938 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.003189, allocations: 125.6 kB / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.003205, allocations: 4.375 kB / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.642e-06/0.003211, allocations: 384 / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.003401, allocations: 103.9 kB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.09e-06/0.003406, allocations: 192 / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-06/0.003412, allocations: 384 / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.003417, allocations: 12.12 kB / 326.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.901e-05/0.003456, allocations: 15.98 kB / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001054/0.003562, allocations: 128.8 kB / 326.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.835e-05/0.00365, allocations: 46.48 kB / 327 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.211e-05/0.003682, allocations: 24.86 kB / 327 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.003701, allocations: 4 kB / 327 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.00372, allocations: 38.5 kB / 327.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 5.1e-07/0.003721, allocations: 0 / 327.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001235/0.003844, allocations: 61.64 kB / 327.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.003879, allocations: 63.34 kB / 327.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.637e-05/0.003935, allocations: 101.8 kB / 327.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.959e-06/0.003945, allocations: 29.64 kB / 327.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.311e-05/0.003979, allocations: 88.14 kB / 327.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.305e-06/0.003981, allocations: 0 / 327.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-05/0.003998, allocations: 9.719 kB / 327.4 MB, free: 12.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.236e-05/0.00408, allocations: 314.8 kB / 327.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.837e-06/0.004084, allocations: 4 kB / 327.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.735e-06/0.004087, allocations: 0 / 327.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.282e-05/0.00411, allocations: 75.28 kB / 327.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-05/0.00413, allocations: 75.28 kB / 327.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 2.797e-05/0.004158, allocations: 33.7 kB / 327.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.004187, allocations: 79.28 kB / 328 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.377e-05/0.00421, allocations: 79.22 kB / 328.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.822e-05/0.004259, allocations: 158.6 kB / 328.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.83e-05/0.004287, allocations: 83.2 kB / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-05/0.004329, allocations: 154.5 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.072e-05/0.00437, allocations: 79.53 kB / 328.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.00439, allocations: 79.22 kB / 328.6 MB, free: 11.58 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.108e-05/0.004461, allocations: 185.1 kB / 328.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.507e-05/0.004506, allocations: 53.69 kB / 328.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.376e-05/0.00453, allocations: 15.69 kB / 328.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.004531, allocations: 0 / 328.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.004536, allocations: 3.938 kB / 328.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.00454, allocations: 3.984 kB / 328.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.299e-05/0.004603, allocations: 120.7 kB / 329 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.004606, allocations: 0 / 329 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.095e-05/0.004647, allocations: 7.984 kB / 329 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.004649, allocations: 0 / 329 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.004654, allocations: 0 / 329 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.004656, allocations: 3.938 kB / 329 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.004658, allocations: 11.88 kB / 329 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.518e-05/0.004724, allocations: 77.12 kB / 329.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-06/0.004728, allocations: 0 / 329.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.406e-06/0.004736, allocations: 0 / 329.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.286e-05/0.004749, allocations: 11.98 kB / 329.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-06/0.004752, allocations: 3.938 kB / 329.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.004755, allocations: 0 / 329.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.66e-05/0.004781, allocations: 79.28 kB / 329.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.004781, allocations: 3.938 kB / 329.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001303/0.004912, allocations: 4 kB / 329.2 MB, free: 10.92 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 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0002725/0.005184, allocations: 0.6233 MB / 329.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.275e-05/0.005237, allocations: 11.98 kB / 329.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.005239, allocations: 0 / 329.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.9e-07/0.005239, allocations: 0 / 329.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001562/0.005395, allocations: 23.92 kB / 329.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006943/0.00609, allocations: 1.368 MB / 331.2 MB, free: 8.789 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.787e-05/0.006127, allocations: 63.34 kB / 331.3 MB, free: 8.707 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.887e-06/0.006136, allocations: 4 kB / 331.3 MB, free: 8.703 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.012e-05/0.006166, allocations: 8.5 kB / 331.3 MB, free: 8.695 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.006167, allocations: 0 / 331.3 MB, free: 8.695 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01315/0.01932, allocations: 1.817 MB / 333.1 MB, free: 6.996 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.535/6.555, allocations: 4 kB / 333.1 MB, free: 6.992 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.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.240819198079407]