Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001713/0.001713, allocations: 118.8 kB / 18.49 MB, free: 4.59 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.002007/0.002007, allocations: 212.7 kB / 21.45 MB, free: 1.633 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.643/1.643, allocations: 230.4 MB / 254.7 MB, free: 15.04 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.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 63.91 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1504, allocations: 53.37 MB / 427 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.004124/0.1545, allocations: 1.585 MB / 428.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1559, allocations: 0.5415 MB / 429.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.156, allocations: 0 / 429.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.885e-05/0.1561, allocations: 11.88 kB / 429.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/0.1563, allocations: 15.91 kB / 429.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004133/0.1567, allocations: 51.83 kB / 429.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.1568, allocations: 51.78 kB / 429.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.157, allocations: 8.188 kB / 429.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.1571, allocations: 31.91 kB / 429.3 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.11e-05/0.1572, allocations: 27.8 kB / 429.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.1572, allocations: 0 / 429.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.26e-05/0.1573, allocations: 8 kB / 429.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.533e-05/0.1573, allocations: 15.92 kB / 429.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.051e-05/0.1574, allocations: 27.81 kB / 429.4 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.1576, allocations: 59.67 kB / 429.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1576, allocations: 4 kB / 429.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1576, allocations: 0 / 429.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.1576, allocations: 0 / 429.5 MB, free: 2.188 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006868/0.1583, allocations: 385.6 kB / 429.8 MB, free: 1.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.1583, allocations: 8.031 kB / 429.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.725e-05/0.1583, allocations: 4.188 kB / 429.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.723e-05/0.1584, allocations: 34.75 kB / 429.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.1586, allocations: 20.88 kB / 429.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.159, allocations: 204.1 kB / 430.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.159, allocations: 4.375 kB / 430.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.159, allocations: 8.125 kB / 430.1 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.1593, allocations: 105 kB / 430.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1594, allocations: 0 / 430.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.1594, allocations: 0 / 430.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1594, allocations: 0 / 430.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.2e-05/0.1595, allocations: 19.98 kB / 430.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004305/0.1599, allocations: 273.7 kB / 430.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.16, allocations: 45.2 kB / 430.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.043e-05/0.16, allocations: 13.78 kB / 430.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.1601, allocations: 7.875 kB / 430.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.1601, allocations: 38.5 kB / 430.6 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.593e-06/0.1601, allocations: 4 kB / 430.6 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000292/0.1604, allocations: 69.56 kB / 430.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/0.1605, allocations: 77.11 kB / 430.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.1606, allocations: 141.8 kB / 430.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.1607, allocations: 25.7 kB / 430.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.855e-05/0.1607, allocations: 92.39 kB / 431 MB, free: 408 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.1607, allocations: 7.953 kB / 431 MB, free: 400 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.1608, allocations: 17.7 kB / 431 MB, free: 376 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.161, allocations: 318.8 kB / 431.4 MB, free: 48 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.361e-05/0.161, allocations: 4 kB / 431.4 MB, free: 44 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.71e-05/0.161, allocations: 21.7 kB / 431.4 MB, free: 16 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.1612, allocations: 33.77 kB / 431.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.1612, allocations: 4 kB / 431.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001466/0.1613, allocations: 53.58 kB / 431.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1613, allocations: 4 kB / 431.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1613, allocations: 0 / 431.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.1614, allocations: 3.984 kB / 431.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.134e-05/0.1614, allocations: 11.94 kB / 431.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.1615, allocations: 4.062 kB / 431.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.512e-05/0.1615, allocations: 0 / 431.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.1615, allocations: 4 kB / 431.5 MB, free: 15.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 0.0001216/0.1616, allocations: 121.8 kB / 431.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.945e-05/0.1617, allocations: 41.66 kB / 431.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.1618, allocations: 3.875 kB / 431.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.954e-06/0.1618, allocations: 3.984 kB / 431.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1618, allocations: 4 kB / 431.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1618, allocations: 0 / 431.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002266/0.162, allocations: 173.6 kB / 431.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.162, allocations: 0 / 431.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.579e-05/0.1621, allocations: 8 kB / 431.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1621, allocations: 0 / 431.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.1621, allocations: 0 / 431.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.1621, allocations: 3.938 kB / 431.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1621, allocations: 0 / 431.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.1623, allocations: 172.2 kB / 432 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.302e-05/0.1624, allocations: 97.03 kB / 432.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.1624, allocations: 0 / 432.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.499e-05/0.1625, allocations: 4 kB / 432.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.1625, allocations: 0 / 432.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-06/0.1625, allocations: 7.984 kB / 432.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.723e-05/0.1626, allocations: 109.8 kB / 432.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1626, allocations: 0 / 432.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002239/0.1628, allocations: 8.031 kB / 432.2 MB, free: 15.04 MB / 366.1 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.0005271/0.1634, allocations: 0.6936 MB / 432.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001708/0.1635, allocations: 24.02 kB / 433 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1635, allocations: 3.938 kB / 433 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.931e-05/0.1636, allocations: 11.98 kB / 433 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.164, allocations: 22.2 kB / 433 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.1657, allocations: 1.328 MB / 434.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.1661, allocations: 0.6885 MB / 435 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.037e-05/0.1661, allocations: 7.984 kB / 435 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.764e-05/0.1662, allocations: 11.44 kB / 435 MB, free: 12.1 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1662, allocations: 0 / 435 MB, free: 12.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/0.1876, allocations: 1.601 MB / 436.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.363/8.551, allocations: 14.91 kB / 436.6 MB, free: 10.61 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,subSample1.factor,time [Calling sys.exit(0), Time elapsed: 11.689612886984833]