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.001301/0.001301, allocations: 123.9 kB / 17.79 MB, free: 5.266 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.001369/0.001369, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.389/1.389, allocations: 225.6 MB / 249.1 MB, free: 3.586 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.001581/0.001581, allocations: 51.91 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.0994, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003556/0.103, allocations: 1.907 MB / 419.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.1049, allocations: 1.068 MB / 420.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.105, allocations: 7.938 kB / 420.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006729/0.1057, allocations: 147.5 kB / 420.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003275/0.106, allocations: 111.6 kB / 421 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005923/0.1066, allocations: 201.7 kB / 421.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002855/0.1069, allocations: 175.6 kB / 421.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.107, allocations: 21.55 kB / 421.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.1071, allocations: 79.62 kB / 421.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1073, allocations: 79.67 kB / 421.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.1073, allocations: 8 kB / 421.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.1074, allocations: 55.91 kB / 421.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-05/0.1075, allocations: 47.83 kB / 421.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.319e-05/0.1076, allocations: 63.55 kB / 421.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000332/0.1079, allocations: 207.1 kB / 421.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1079, allocations: 0 / 421.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1079, allocations: 0 / 421.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.1079, allocations: 4 kB / 421.9 MB, free: 8.441 MB / 350.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.000845/0.1088, allocations: 0.5115 MB / 422.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.1088, allocations: 12.03 kB / 422.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.759e-05/0.1089, allocations: 38.73 kB / 422.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.495e-05/0.1089, allocations: 24.8 kB / 422.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.1093, allocations: 266.9 kB / 422.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.1093, allocations: 12.38 kB / 422.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.1093, allocations: 15.86 kB / 422.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.1097, allocations: 142.7 kB / 422.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1097, allocations: 4 kB / 422.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.1097, allocations: 4 kB / 422.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1097, allocations: 4 kB / 423 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.675e-05/0.1098, allocations: 31.92 kB / 423 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005057/0.1103, allocations: 350.5 kB / 423.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.1106, allocations: 107.9 kB / 423.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.1107, allocations: 38.58 kB / 423.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.1107, allocations: 12.05 kB / 423.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.1109, allocations: 83.27 kB / 423.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.1109, allocations: 0 / 423.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003606/0.1112, allocations: 141.5 kB / 423.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.1113, allocations: 132.5 kB / 423.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002903/0.1116, allocations: 264.9 kB / 424.1 MB, free: 5.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.1116, allocations: 33.95 kB / 424.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.196e-05/0.1117, allocations: 120 kB / 424.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.1118, allocations: 23.83 kB / 424.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.1118, allocations: 25.72 kB / 424.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.112, allocations: 334.8 kB / 424.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.587e-05/0.112, allocations: 16 kB / 424.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.1122, allocations: 81.92 kB / 424.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.1123, allocations: 68.23 kB / 424.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1123, allocations: 0 / 424.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002824/0.1126, allocations: 117.5 kB / 424.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1126, allocations: 10.19 kB / 424.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1126, allocations: 0 / 424.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1126, allocations: 4 kB / 424.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.396e-05/0.1127, allocations: 16.3 kB / 424.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1127, allocations: 4 kB / 424.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.104e-05/0.1128, allocations: 15.89 kB / 424.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.056e-06/0.1128, allocations: 4 kB / 424.9 MB, free: 5.074 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.0001418/0.1129, allocations: 149.9 kB / 425.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.515e-05/0.113, allocations: 61.53 kB / 425.2 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.75e-05/0.1131, allocations: 25.7 kB / 425.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1131, allocations: 4 kB / 425.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.1131, allocations: 0 / 425.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1131, allocations: 3.938 kB / 425.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.1133, allocations: 221.5 kB / 425.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1133, allocations: 4 kB / 425.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.722e-05/0.1133, allocations: 8.047 kB / 425.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1133, allocations: 4 kB / 425.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.1133, allocations: 4 kB / 425.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1134, allocations: 0 / 425.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1134, allocations: 0 / 425.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.1136, allocations: 154.6 kB / 425.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.1137, allocations: 116.9 kB / 425.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/0.1138, allocations: 4 kB / 425.7 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.855e-05/0.1138, allocations: 4 kB / 425.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.1139, allocations: 11.92 kB / 425.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.1139, allocations: 8 kB / 425.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.1141, allocations: 192.5 kB / 425.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1141, allocations: 96 / 425.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.1143, allocations: 27.94 kB / 425.9 MB, free: 3.98 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.001957/0.1163, allocations: 1.019 MB / 426.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002584/0.1166, allocations: 64.09 kB / 427 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1166, allocations: 8.062 kB / 427 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.237e-05/0.1166, allocations: 27.92 kB / 427 MB, free: 3.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.1171, allocations: 59.94 kB / 427.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002362/0.1194, allocations: 1.925 MB / 429 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.1198, allocations: 0.7358 MB / 429.8 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.824e-05/0.1199, allocations: 21.53 kB / 429.8 MB, free: 124 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.346e-05/0.12, allocations: 47.41 kB / 429.8 MB, free: 76 kB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.12, allocations: 3.938 kB / 429.8 MB, free: 72 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04461/0.1646, allocations: 4.627 MB / 434.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.102/8.266, allocations: 6.812 kB / 434.5 MB, free: 11.55 MB / 366.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.93166990717873]