Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 100 kB / 16.31 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 189.4 kB / 17.24 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.813/1.813, allocations: 205.1 MB / 223.1 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08874/0.08874, allocations: 12.59 MB / 283.1 MB, free: 15.47 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001893, allocations: 90.84 kB / 343.5 MB, free: 2.938 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3083, allocations: 49.39 MB / 392.9 MB, free: 49.15 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.005231/0.3136, allocations: 1.864 MB / 394.7 MB, free: 47.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.3157, allocations: 0.9676 MB / 395.7 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.3159, allocations: 2.25 kB / 395.7 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000748/0.3167, allocations: 152.4 kB / 395.9 MB, free: 47.16 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003117/0.317, allocations: 111.3 kB / 396 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005334/0.3175, allocations: 177.3 kB / 396.1 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002414/0.3178, allocations: 181.9 kB / 396.3 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.3179, allocations: 37.94 kB / 396.4 MB, free: 46.92 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.318, allocations: 67.47 kB / 396.4 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.3182, allocations: 70.91 kB / 396.5 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.902e-05/0.3182, allocations: 17.19 kB / 396.5 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.3183, allocations: 60.23 kB / 396.6 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.005e-05/0.3184, allocations: 41.59 kB / 396.6 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.518e-05/0.3185, allocations: 65.8 kB / 396.7 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.3188, allocations: 205.2 kB / 396.9 MB, free: 46.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3188, allocations: 3.938 kB / 396.9 MB, free: 46.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3188, allocations: 0 / 396.9 MB, free: 46.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.3188, allocations: 0 / 396.9 MB, free: 46.59 MB / 318.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.0007622/0.3196, allocations: 0.5048 MB / 397.4 MB, free: 46.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.3197, allocations: 13.41 kB / 397.4 MB, free: 46.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.713e-05/0.3197, allocations: 18.34 kB / 397.4 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.3201, allocations: 257.9 kB / 397.7 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.3201, allocations: 2.625 kB / 397.7 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.3202, allocations: 16.44 kB / 397.7 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003754/0.3206, allocations: 148.5 kB / 397.8 MB, free: 45.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.3206, allocations: 1 kB / 397.8 MB, free: 45.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.3206, allocations: 5.188 kB / 397.8 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.3206, allocations: 1.094 kB / 397.8 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.3207, allocations: 32.77 kB / 397.9 MB, free: 45.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005377/0.3213, allocations: 360.6 kB / 398.2 MB, free: 45.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002441/0.3215, allocations: 109.1 kB / 398.3 MB, free: 45.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.604e-05/0.3216, allocations: 45 kB / 398.4 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.3217, allocations: 1.938 kB / 398.4 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.3219, allocations: 87.83 kB / 398.5 MB, free: 45.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.813e-06/0.3219, allocations: 0 / 398.5 MB, free: 45.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003786/0.3223, allocations: 133.8 kB / 398.6 MB, free: 44.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.3223, allocations: 144.3 kB / 398.7 MB, free: 44.81 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002873/0.3226, allocations: 262.9 kB / 399 MB, free: 44.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.3227, allocations: 26.7 kB / 399 MB, free: 44.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.421e-05/0.3227, allocations: 116.7 kB / 399.1 MB, free: 44.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.3228, allocations: 15.59 kB / 399.1 MB, free: 44.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.563e-05/0.3228, allocations: 35.52 kB / 399.2 MB, free: 44.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.13e-05/0.3229, allocations: 326.5 kB / 399.5 MB, free: 44.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.858e-05/0.323, allocations: 27.55 kB / 399.5 MB, free: 44.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.3231, allocations: 67.91 kB / 399.6 MB, free: 44.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.3232, allocations: 81.06 kB / 399.7 MB, free: 43.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3232, allocations: 0 / 399.7 MB, free: 43.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001894/0.3234, allocations: 115.3 kB / 399.8 MB, free: 43.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3234, allocations: 5.781 kB / 399.8 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3234, allocations: 1.062 kB / 399.8 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.3234, allocations: 2.281 kB / 399.8 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.436e-05/0.3235, allocations: 14.61 kB / 399.8 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.3236, allocations: 5.219 kB / 399.8 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.457e-05/0.3236, allocations: 24.34 kB / 399.8 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.3236, allocations: 3.312 kB / 399.8 MB, free: 43.87 MB / 318.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,sample.u,subSample.y,subSample.u,sample.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.0001082/0.3238, allocations: 143.7 kB / 400 MB, free: 43.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.493e-05/0.3238, allocations: 63.94 kB / 400 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.807e-05/0.3239, allocations: 16.81 kB / 400.1 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3239, allocations: 2.344 kB / 400.1 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3239, allocations: 9.266 kB / 400.1 MB, free: 43.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.3239, allocations: 3.938 kB / 400.1 MB, free: 43.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.3241, allocations: 223.6 kB / 400.3 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3241, allocations: 0 / 400.3 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.574e-05/0.3241, allocations: 8.625 kB / 400.3 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3241, allocations: 1.156 kB / 400.3 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.3242, allocations: 2.5 kB / 400.3 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.3242, allocations: 5.203 kB / 400.3 MB, free: 43.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3242, allocations: 0 / 400.3 MB, free: 43.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.3244, allocations: 165.5 kB / 400.5 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.639e-05/0.3245, allocations: 105.4 kB / 400.6 MB, free: 43.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.3245, allocations: 10.45 kB / 400.6 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.578e-05/0.3246, allocations: 6.312 kB / 400.6 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.3246, allocations: 3.656 kB / 400.6 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.3246, allocations: 11.27 kB / 400.6 MB, free: 43.15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001767/0.3248, allocations: 195.2 kB / 400.8 MB, free: 43.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3248, allocations: 0 / 400.8 MB, free: 43.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00025/0.3251, allocations: 30.05 kB / 400.8 MB, free: 43.01 MB / 318.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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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.0009907/0.3261, allocations: 421.5 kB / 401.2 MB, free: 42.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002437/0.3263, allocations: 66.34 kB / 401.3 MB, free: 42.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3263, allocations: 0 / 401.3 MB, free: 42.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.599e-05/0.3264, allocations: 31.83 kB / 401.3 MB, free: 42.64 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.3268, allocations: 56.94 kB / 401.4 MB, free: 42.61 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005907/0.3274, allocations: 307.9 kB / 401.7 MB, free: 42.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.3277, allocations: 0.7376 MB / 402.4 MB, free: 41.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.17e-05/0.3278, allocations: 29.92 kB / 402.5 MB, free: 41.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.676e-05/0.3278, allocations: 17.59 kB / 402.5 MB, free: 41.62 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3278, allocations: 7.875 kB / 402.5 MB, free: 41.61 MB / 318.1 MB Notification: Performance of Templates: time 0.006268/0.3341, allocations: 2.4 MB / 404.9 MB, free: 40.38 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches