Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 120.8 kB / 17.74 MB, free: 5.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 186.9 kB / 20.68 MB, free: 2.402 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 246.4 MB, free: 4.184 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 55.91 kB / 357.5 MB, free: 8.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09169, allocations: 49.43 MB / 406.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003207/0.09493, allocations: 1.887 MB / 408.8 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.09672, allocations: 1.052 MB / 409.9 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.09688, allocations: 7.938 kB / 409.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005953/0.09751, allocations: 151.5 kB / 410 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003061/0.09783, allocations: 119.5 kB / 410.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005646/0.0984, allocations: 194.8 kB / 410.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00028/0.09869, allocations: 179.5 kB / 410.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.09882, allocations: 41.77 kB / 410.5 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.09894, allocations: 75.62 kB / 410.6 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.09907, allocations: 71.69 kB / 410.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.0991, allocations: 8 kB / 410.7 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.09925, allocations: 55.97 kB / 410.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.979e-05/0.09933, allocations: 43.83 kB / 410.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.729e-05/0.09942, allocations: 75.48 kB / 410.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.09975, allocations: 203.1 kB / 411.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.09976, allocations: 4 kB / 411.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09977, allocations: 0 / 411.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.09978, allocations: 0 / 411.1 MB, free: 3.172 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007712/0.1006, allocations: 0.5116 MB / 411.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.1006, allocations: 8.031 kB / 411.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.652e-05/0.1007, allocations: 42.73 kB / 411.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.756e-05/0.1007, allocations: 20.8 kB / 411.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.101, allocations: 270.9 kB / 411.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.1011, allocations: 8.359 kB / 411.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/0.1011, allocations: 15.92 kB / 411.9 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003037/0.1014, allocations: 142.7 kB / 412.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.1014, allocations: 3.938 kB / 412.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.1014, allocations: 4 kB / 412.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1015, allocations: 0 / 412.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.452e-05/0.1016, allocations: 31.98 kB / 412.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004645/0.102, allocations: 350.4 kB / 412.5 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.1023, allocations: 115.9 kB / 412.6 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.947e-05/0.1023, allocations: 38.58 kB / 412.6 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.1024, allocations: 11.98 kB / 412.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.1026, allocations: 79.28 kB / 412.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.1026, allocations: 0 / 412.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003779/0.103, allocations: 133.5 kB / 412.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1031, allocations: 140.8 kB / 413 MB, free: 1.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.1034, allocations: 260.9 kB / 413.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.1034, allocations: 29.7 kB / 413.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.297e-05/0.1035, allocations: 120.1 kB / 413.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.1035, allocations: 27.77 kB / 413.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.1036, allocations: 29.72 kB / 413.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1038, allocations: 330.8 kB / 413.7 MB, free: 188 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.037e-05/0.1038, allocations: 19.94 kB / 413.8 MB, free: 168 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.919e-05/0.1039, allocations: 74.23 kB / 413.8 MB, free: 72 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.1041, allocations: 80.31 kB / 413.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1041, allocations: 0 / 413.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000211/0.1043, allocations: 117.4 kB / 414 MB, free: 15.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.1044, allocations: 4 kB / 414 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.1044, allocations: 7.938 kB / 414 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1044, allocations: 0 / 414 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.443e-05/0.1045, allocations: 15.98 kB / 414.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.1045, allocations: 0 / 414.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.273e-05/0.1046, allocations: 20.02 kB / 414.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.1046, allocations: 4 kB / 414.1 MB, free: 15.8 MB / 350.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: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001539/0.1047, allocations: 145.8 kB / 414.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.605e-05/0.1048, allocations: 61.59 kB / 414.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.388e-05/0.1049, allocations: 25.7 kB / 414.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.1049, allocations: 0 / 414.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1049, allocations: 0 / 414.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.1049, allocations: 7.938 kB / 414.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.1052, allocations: 229.5 kB / 414.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1052, allocations: 0 / 414.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.915e-05/0.1052, allocations: 11.92 kB / 414.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1052, allocations: 0 / 414.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.1052, allocations: 4 kB / 414.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1052, allocations: 0 / 414.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.1052, allocations: 64 / 414.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.1055, allocations: 162.6 kB / 414.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.728e-05/0.1056, allocations: 108.9 kB / 414.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.1056, allocations: 4 kB / 414.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.572e-05/0.1057, allocations: 4 kB / 414.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.1057, allocations: 11.92 kB / 414.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.1058, allocations: 4 kB / 414.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.106, allocations: 196.5 kB / 415 MB, free: 14.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.106, allocations: 0 / 415 MB, free: 14.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002513/0.1062, allocations: 32.03 kB / 415.1 MB, free: 14.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001941/0.1082, allocations: 1.019 MB / 416.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002214/0.1084, allocations: 71.84 kB / 416.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1084, allocations: 0 / 416.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.074e-05/0.1085, allocations: 27.98 kB / 416.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.1089, allocations: 60.25 kB / 416.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.1112, allocations: 1.927 MB / 418.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.1115, allocations: 0.7319 MB / 418.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.879e-05/0.1116, allocations: 21.53 kB / 418.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.696e-05/0.1117, allocations: 43.42 kB / 419 MB, free: 10.8 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1117, allocations: 4 kB / 419 MB, free: 10.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02572/0.1375, allocations: 4.605 MB / 423.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.114/8.252, allocations: 0.625 kB / 423.6 MB, free: 6.344 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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: 10.845002844929695]