Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001672/0.001672, allocations: 131.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001785/0.001785, allocations: 211.6 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 230.5 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002057/0.002057, allocations: 67.91 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1046, allocations: 53.38 MB / 426.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003624/0.1083, allocations: 1.907 MB / 428.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.1106, allocations: 1.281 MB / 429.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.1108, allocations: 7.938 kB / 429.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000345/0.1111, allocations: 67.59 kB / 429.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004241/0.1116, allocations: 135.5 kB / 429.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007243/0.1123, allocations: 230.1 kB / 430 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.1126, allocations: 171.5 kB / 430.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.1127, allocations: 33.47 kB / 430.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.1129, allocations: 67.7 kB / 430.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.113, allocations: 95.59 kB / 430.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.738e-05/0.113, allocations: 11.98 kB / 430.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.1132, allocations: 63.97 kB / 430.4 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.1133, allocations: 59.75 kB / 430.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.304e-05/0.1134, allocations: 75.48 kB / 430.5 MB, free: 448 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003979/0.1138, allocations: 246.9 kB / 430.8 MB, free: 200 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1138, allocations: 0 / 430.8 MB, free: 200 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1138, allocations: 0 / 430.8 MB, free: 200 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.1138, allocations: 0 / 430.8 MB, free: 200 kB / 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.0008504/0.1147, allocations: 0.5426 MB / 431.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.1147, allocations: 12.03 kB / 431.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.843e-05/0.1148, allocations: 38.73 kB / 431.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.1148, allocations: 24.8 kB / 431.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.1153, allocations: 291.8 kB / 431.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.1153, allocations: 4.375 kB / 431.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.1153, allocations: 8.375 kB / 431.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.1157, allocations: 163 kB / 431.8 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1157, allocations: 0 / 431.8 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.1157, allocations: 4 kB / 431.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.1157, allocations: 3.984 kB / 431.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.1159, allocations: 39.92 kB / 431.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005652/0.1164, allocations: 386.3 kB / 432.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.1167, allocations: 119.9 kB / 432.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.1168, allocations: 42.56 kB / 432.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.1168, allocations: 8.062 kB / 432.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/0.117, allocations: 79.31 kB / 432.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.117, allocations: 0 / 432.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004391/0.1175, allocations: 157.6 kB / 432.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1176, allocations: 154.2 kB / 432.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004101/0.118, allocations: 338.7 kB / 433.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.118, allocations: 29.7 kB / 433.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.1181, allocations: 128.3 kB / 433.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.1182, allocations: 23.89 kB / 433.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.818e-05/0.1182, allocations: 29.72 kB / 433.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1184, allocations: 334.8 kB / 433.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.638e-05/0.1185, allocations: 28.05 kB / 433.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.1186, allocations: 98.72 kB / 433.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000178/0.1188, allocations: 80.22 kB / 433.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1188, allocations: 3.938 kB / 433.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002617/0.1191, allocations: 129.4 kB / 434 MB, free: 12.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.1191, allocations: 4 kB / 434 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.1191, allocations: 0 / 434 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1191, allocations: 4 kB / 434 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.1192, allocations: 19.98 kB / 434 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.1192, allocations: 0 / 434 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.969e-05/0.1193, allocations: 11.94 kB / 434.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.1193, allocations: 7.984 kB / 434.1 MB, free: 12.55 MB / 366.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,table.y,subSample1.y,subSample1.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.000157/0.1195, allocations: 161.8 kB / 434.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.1196, allocations: 69.5 kB / 434.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.181e-05/0.1196, allocations: 29.7 kB / 434.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1196, allocations: 0 / 434.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.1196, allocations: 0 / 434.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1197, allocations: 7.938 kB / 434.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.1199, allocations: 237.5 kB / 434.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1199, allocations: 0 / 434.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.251e-05/0.12, allocations: 19.92 kB / 434.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.12, allocations: 8.031 kB / 434.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.12, allocations: 4.125 kB / 434.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.12, allocations: 4 kB / 434.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.12, allocations: 4 kB / 434.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003025/0.1203, allocations: 162.5 kB / 434.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.1204, allocations: 116.9 kB / 434.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.221e-05/0.1204, allocations: 4 kB / 434.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.931e-05/0.1205, allocations: 8 kB / 434.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/0.1206, allocations: 11.98 kB / 434.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.1206, allocations: 4 kB / 434.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002742/0.1209, allocations: 245.9 kB / 435.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1209, allocations: 0 / 435.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.1211, allocations: 39.88 kB / 435.2 MB, free: 11.33 MB / 366.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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.002106/0.1232, allocations: 1.011 MB / 436.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002397/0.1235, allocations: 75.84 kB / 436.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1235, allocations: 256 / 436.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.434e-05/0.1236, allocations: 27.98 kB / 436.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004117/0.124, allocations: 69.16 kB / 436.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.1268, allocations: 2.22 MB / 438.6 MB, free: 7.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.1272, allocations: 0.7475 MB / 439.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.131e-05/0.1273, allocations: 25.53 kB / 439.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.1274, allocations: 59.36 kB / 439.4 MB, free: 7.055 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1274, allocations: 0 / 439.4 MB, free: 7.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.157, allocations: 5.342 MB / 444.7 MB, free: 1.801 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/7.887, allocations: 4.062 kB / 444.8 MB, free: 1.797 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.756172487977892]