Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.00166/0.00166, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.00204/0.00204, allocations: 211.8 kB / 23.72 MB, free: 4.531 MB / 14.72 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 1.399/1.399, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 47.92 kB / 377.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2948, allocations: 53.37 MB / 431.1 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003353/0.2981, allocations: 1.878 MB / 433 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.3001, allocations: 1.138 MB / 434.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.3002, allocations: 7.938 kB / 434.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005987/0.3008, allocations: 151.5 kB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000395/0.3012, allocations: 155.4 kB / 434.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004501/0.3016, allocations: 171.5 kB / 434.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002696/0.3019, allocations: 199.4 kB / 434.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.302, allocations: 21.53 kB / 434.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.3021, allocations: 71.7 kB / 434.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.3023, allocations: 87.61 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.3023, allocations: 11.94 kB / 435 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.3024, allocations: 63.89 kB / 435 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.379e-05/0.3025, allocations: 43.84 kB / 435.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.098e-05/0.3026, allocations: 47.67 kB / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.3029, allocations: 224.9 kB / 435.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3029, allocations: 0 / 435.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3029, allocations: 0 / 435.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3029, allocations: 0 / 435.3 MB, free: 2.438 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.0007494/0.3037, allocations: 450.8 kB / 435.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3037, allocations: 8.031 kB / 435.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.943e-05/0.3038, allocations: 38.73 kB / 435.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.185e-05/0.3038, allocations: 20.8 kB / 435.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.3042, allocations: 225 kB / 436 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.3042, allocations: 384 / 436 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.3042, allocations: 11.94 kB / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.3045, allocations: 140.9 kB / 436.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3045, allocations: 0 / 436.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.3045, allocations: 4 kB / 436.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.3045, allocations: 4 kB / 436.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.3046, allocations: 31.92 kB / 436.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/0.3051, allocations: 329.5 kB / 436.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.3053, allocations: 111.9 kB / 436.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.875e-05/0.3054, allocations: 46.48 kB / 436.7 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.3055, allocations: 4 kB / 436.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.3056, allocations: 71.39 kB / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.3056, allocations: 0 / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003819/0.306, allocations: 161.4 kB / 436.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/0.3061, allocations: 106.8 kB / 437 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.3064, allocations: 277 kB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.3064, allocations: 25.7 kB / 437.3 MB, free: 188 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.289e-05/0.3065, allocations: 116.1 kB / 437.5 MB, free: 68 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.3065, allocations: 19.89 kB / 437.5 MB, free: 48 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.3066, allocations: 29.67 kB / 437.5 MB, free: 12 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3067, allocations: 334.8 kB / 437.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.289e-05/0.3068, allocations: 19.98 kB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.3069, allocations: 91.03 kB / 437.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.3071, allocations: 84.25 kB / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.3071, allocations: 0 / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002164/0.3073, allocations: 117.5 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.3073, allocations: 4 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3073, allocations: 4.125 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3073, allocations: 4 kB / 438.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.184e-05/0.3074, allocations: 23.86 kB / 438.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.3074, allocations: 3.984 kB / 438.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.186e-05/0.3075, allocations: 15.83 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.3075, allocations: 4 kB / 438.2 MB, free: 15.27 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,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.0001355/0.3076, allocations: 145.8 kB / 438.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.697e-05/0.3077, allocations: 65.53 kB / 438.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002508/0.3079, allocations: 115.4 kB / 438.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3079, allocations: 4.062 kB / 438.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.308, allocations: 0 / 438.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.308, allocations: 7.938 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.3082, allocations: 180.7 kB / 438.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3082, allocations: 4.312 kB / 438.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.79e-05/0.3082, allocations: 15.92 kB / 438.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3082, allocations: 4 kB / 438.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.3082, allocations: 4 kB / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3082, allocations: 0 / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3082, allocations: 0 / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.3085, allocations: 166.6 kB / 438.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.327e-05/0.3085, allocations: 39.78 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.3086, allocations: 4 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.635e-05/0.3086, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.3087, allocations: 15.92 kB / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.3087, allocations: 4 kB / 439 MB, free: 14.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.3089, allocations: 204.5 kB / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3089, allocations: 0 / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002433/0.3091, allocations: 27.98 kB / 439.2 MB, free: 14.19 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,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.002041/0.3112, allocations: 1.05 MB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002108/0.3114, allocations: 67.91 kB / 440.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3114, allocations: 0 / 440.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.558e-05/0.3115, allocations: 27.98 kB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.3119, allocations: 66.98 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.3141, allocations: 1.963 MB / 442.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.3143, allocations: 123.2 kB / 442.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.21e-05/0.3143, allocations: 25.61 kB / 442.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.211e-05/0.3144, allocations: 59.41 kB / 442.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3144, allocations: 0 / 442.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.3469, allocations: 5.38 MB / 447.9 MB, free: 5.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.77, allocations: 3.375 kB / 447.9 MB, free: 5.523 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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: 13.154393060016446]