Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001365/0.001365, allocations: 124.7 kB / 17.79 MB, free: 5.246 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.001361/0.001361, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.617 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.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 51.91 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09911, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003373/0.1025, allocations: 1.876 MB / 419.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.1045, allocations: 1.138 MB / 420.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1046, allocations: 7.938 kB / 420.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003255/0.1049, allocations: 71.64 kB / 420.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.1052, allocations: 87.66 kB / 421 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007242/0.1059, allocations: 256.6 kB / 421.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002448/0.1062, allocations: 167.6 kB / 421.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.1063, allocations: 17.55 kB / 421.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.1064, allocations: 79.62 kB / 421.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.1065, allocations: 83.67 kB / 421.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.1065, allocations: 8 kB / 421.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.1067, allocations: 67.95 kB / 421.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.84e-05/0.1068, allocations: 59.7 kB / 421.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.052e-05/0.1068, allocations: 71.48 kB / 421.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003484/0.1072, allocations: 235 kB / 422 MB, free: 8.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1072, allocations: 4 kB / 422 MB, free: 8.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1072, allocations: 0 / 422 MB, free: 8.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.1072, allocations: 0 / 422 MB, free: 8.391 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.0007703/0.108, allocations: 0.5387 MB / 422.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.108, allocations: 8.031 kB / 422.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.481e-05/0.108, allocations: 42.73 kB / 422.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.207e-05/0.1081, allocations: 20.8 kB / 422.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004291/0.1085, allocations: 291.8 kB / 422.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.1085, allocations: 8.375 kB / 422.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.1086, allocations: 7.938 kB / 422.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003382/0.1089, allocations: 171.5 kB / 423.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1089, allocations: 0 / 423.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.1089, allocations: 8 kB / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1089, allocations: 0 / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.109, allocations: 39.91 kB / 423.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005366/0.1096, allocations: 382.4 kB / 423.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002722/0.1099, allocations: 111.9 kB / 423.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.849e-05/0.1099, allocations: 46.56 kB / 423.6 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.11, allocations: 8.062 kB / 423.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001753/0.1101, allocations: 79.31 kB / 423.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.1102, allocations: 0 / 423.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003813/0.1105, allocations: 153.6 kB / 423.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.1106, allocations: 166.2 kB / 424 MB, free: 6.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000347/0.111, allocations: 330.6 kB / 424.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.111, allocations: 29.7 kB / 424.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.378e-05/0.1111, allocations: 124.1 kB / 424.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.1111, allocations: 15.89 kB / 424.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.557e-05/0.1112, allocations: 33.66 kB / 424.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1113, allocations: 334.8 kB / 424.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.96e-05/0.1114, allocations: 23.98 kB / 424.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.1115, allocations: 86.78 kB / 425 MB, free: 5.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.1117, allocations: 84.22 kB / 425.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1117, allocations: 4 kB / 425.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002252/0.1119, allocations: 121.5 kB / 425.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.1119, allocations: 8 kB / 425.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1119, allocations: 320 / 425.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1119, allocations: 128 / 425.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.112, allocations: 23.98 kB / 425.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.112, allocations: 11.94 kB / 425.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.852e-05/0.1121, allocations: 19.81 kB / 425.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.1121, allocations: 0 / 425.3 MB, free: 4.758 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,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.0001378/0.1123, allocations: 154.5 kB / 425.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.072e-05/0.1124, allocations: 69.48 kB / 425.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.103e-05/0.1124, allocations: 29.7 kB / 425.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.1124, allocations: 4.062 kB / 425.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1124, allocations: 4 kB / 425.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1124, allocations: 3.938 kB / 425.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002179/0.1127, allocations: 233.6 kB / 425.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1127, allocations: 0 / 425.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.055e-05/0.1127, allocations: 11.98 kB / 425.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1127, allocations: 4 kB / 425.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.1127, allocations: 0 / 425.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1127, allocations: 0 / 425.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.1127, allocations: 4 kB / 425.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.113, allocations: 166.5 kB / 425.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.1131, allocations: 120.9 kB / 426 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.1132, allocations: 4 kB / 426 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.878e-05/0.1132, allocations: 8 kB / 426.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/0.1133, allocations: 12.02 kB / 426.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.1133, allocations: 11.88 kB / 426.1 MB, free: 3.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.1135, allocations: 241.9 kB / 426.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1135, allocations: 0 / 426.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002571/0.1138, allocations: 35.98 kB / 426.4 MB, free: 3.551 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,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.001914/0.1157, allocations: 1.027 MB / 427.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.1159, allocations: 71.89 kB / 427.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1159, allocations: 0 / 427.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.192e-05/0.116, allocations: 31.92 kB / 427.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003955/0.1164, allocations: 57.14 kB / 427.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.119, allocations: 2.213 MB / 429.7 MB, free: 180 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.1193, allocations: 0.7358 MB / 430.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.705e-05/0.1194, allocations: 25.55 kB / 430.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.861e-05/0.1195, allocations: 59.41 kB / 430.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1195, allocations: 0 / 430.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.1473, allocations: 5.245 MB / 435.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.158/8.305, allocations: 10.19 kB / 435.8 MB, free: 10.18 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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: 11.11923404596746]