Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.000828/0.000828, allocations: 76.08 kB / 20.67 MB, free: 3.883 MB / 18.57 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.0007699/0.0007699, allocations: 149.1 kB / 23.93 MB, free: 0.6211 MB / 18.57 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 0.9097/0.9097, allocations: 173.4 MB / 200.5 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 318.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.484e-05/1.68e-05, allocations: 2.281 kB / 318.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.001858/0.001875, allocations: 1.543 MB / 320 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005856/0.00246, allocations: 454.8 kB / 320.4 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.197e-05/0.002532, allocations: 4 kB / 320.4 MB, free: 4.223 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.084e-05/0.002573, allocations: 11.81 kB / 320.4 MB, free: 4.211 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.002696, allocations: 11.92 kB / 320.4 MB, free: 4.199 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001967/0.002892, allocations: 39.78 kB / 320.5 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.808e-05/0.00298, allocations: 51.77 kB / 320.5 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.505e-05/0.003065, allocations: 11.98 kB / 320.5 MB, free: 4.098 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.615e-05/0.003122, allocations: 27.97 kB / 320.6 MB, free: 4.07 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.344e-05/0.003165, allocations: 23.91 kB / 320.6 MB, free: 4.047 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.003186, allocations: 0 / 320.6 MB, free: 4.047 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.276e-06/0.003194, allocations: 4 kB / 320.6 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.014e-05/0.003234, allocations: 15.94 kB / 320.6 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.033e-05/0.003254, allocations: 15.92 kB / 320.6 MB, free: 4.012 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.295e-05/0.003347, allocations: 55.73 kB / 320.7 MB, free: 3.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.734e-06/0.003349, allocations: 0 / 320.7 MB, free: 3.957 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.00335, allocations: 0 / 320.7 MB, free: 3.957 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.003354, allocations: 7.938 kB / 320.7 MB, free: 3.949 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003136/0.003668, allocations: 290.1 kB / 321 MB, free: 3.637 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.003701, allocations: 8.922 kB / 321 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.767e-05/0.003729, allocations: 42.75 kB / 321 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.045e-05/0.003749, allocations: 8.891 kB / 321 MB, free: 3.57 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.00391, allocations: 145.6 kB / 321.2 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.003917, allocations: 384 / 321.2 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.003926, allocations: 4.375 kB / 321.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.004133, allocations: 109.5 kB / 321.3 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.004141, allocations: 192 / 321.3 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.004151, allocations: 8.125 kB / 321.3 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.004156, allocations: 4 kB / 321.3 MB, free: 3.262 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.188e-05/0.004197, allocations: 19.92 kB / 321.3 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002357/0.004433, allocations: 224.9 kB / 321.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.321e-05/0.004486, allocations: 45.14 kB / 321.6 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.968e-05/0.004516, allocations: 25.72 kB / 321.6 MB, free: 2.883 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.004531, allocations: 4 kB / 321.6 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.004548, allocations: 30.56 kB / 321.6 MB, free: 2.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.004549, allocations: 0 / 321.6 MB, free: 2.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001536/0.004702, allocations: 77.56 kB / 321.7 MB, free: 2.758 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.004738, allocations: 77.11 kB / 321.8 MB, free: 2.664 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.973e-05/0.004818, allocations: 142.1 kB / 321.9 MB, free: 2.512 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.155e-06/0.004826, allocations: 25.7 kB / 321.9 MB, free: 2.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.004859, allocations: 84.14 kB / 322 MB, free: 2.395 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.598e-06/0.004869, allocations: 0 / 322 MB, free: 2.395 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.523e-05/0.004894, allocations: 25.66 kB / 322.1 MB, free: 2.363 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.077e-05/0.004965, allocations: 314.8 kB / 322.4 MB, free: 2.047 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.977e-05/0.004984, allocations: 8.188 kB / 322.4 MB, free: 2.039 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.573e-05/0.005, allocations: 19.92 kB / 322.4 MB, free: 2.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.486e-05/0.005035, allocations: 16.84 kB / 322.4 MB, free: 2 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.005036, allocations: 0 / 322.4 MB, free: 2 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.717e-05/0.005094, allocations: 53.62 kB / 322.5 MB, free: 1.941 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.005103, allocations: 4 kB / 322.5 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.005106, allocations: 0 / 322.5 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.005116, allocations: 0 / 322.5 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.39e-05/0.00516, allocations: 8.094 kB / 322.5 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.217e-06/0.005164, allocations: 3.984 kB / 322.5 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.407e-05/0.005178, allocations: 0 / 322.5 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.005184, allocations: 4 kB / 322.5 MB, free: 1.922 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 4.808e-05/0.005232, allocations: 117.8 kB / 322.6 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.005261, allocations: 41.58 kB / 322.6 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.00528, allocations: 11.81 kB / 322.6 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.005281, allocations: 0 / 322.6 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.005285, allocations: 4 kB / 322.6 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.005287, allocations: 3.938 kB / 322.7 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.686e-05/0.005384, allocations: 140.8 kB / 322.8 MB, free: 1.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.005387, allocations: 7.938 kB / 322.8 MB, free: 1.543 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.946e-05/0.005406, allocations: 8 kB / 322.8 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.51e-07/0.005407, allocations: 0 / 322.8 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-06/0.005411, allocations: 0 / 322.8 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.005412, allocations: 0 / 322.8 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.005413, allocations: 0 / 322.8 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.462e-05/0.005498, allocations: 160.3 kB / 323 MB, free: 1.359 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.884e-05/0.005527, allocations: 27.86 kB / 323 MB, free: 1.332 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.145e-06/0.005535, allocations: 4.031 kB / 323 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.095e-05/0.005566, allocations: 0 / 323 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.771e-05/0.005584, allocations: 4 kB / 323 MB, free: 1.324 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.853e-06/0.005585, allocations: 0 / 323 MB, free: 1.324 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.5e-05/0.00563, allocations: 109.7 kB / 323.1 MB, free: 1.219 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00563, allocations: 0 / 323.1 MB, free: 1.219 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001326/0.005763, allocations: 8 kB / 323.1 MB, free: 1.211 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0002441/0.006007, allocations: 0.6897 MB / 323.8 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.56e-05/0.006073, allocations: 24.02 kB / 323.8 MB, free: 480 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.006075, allocations: 4 kB / 323.8 MB, free: 476 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.59e-05/0.006091, allocations: 4 kB / 323.8 MB, free: 472 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.006314, allocations: 30.64 kB / 323.9 MB, free: 444 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009948/0.007309, allocations: 1.282 MB / 325.1 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.701e-05/0.007356, allocations: 79.36 kB / 325.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.006e-05/0.007376, allocations: 7.984 kB / 325.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.702e-05/0.007403, allocations: 12.5 kB / 325.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.007404, allocations: 0 / 325.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.02227, allocations: 2.213 MB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.794/6.817, allocations: 7.938 kB / 327.5 MB, free: 12.86 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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: 8.50761267542839]