Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001403/0.001403, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001775/0.001775, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3674/0.3688, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003539/0.3724, allocations: 1.886 MB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.3745, allocations: 1.262 MB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.3747, allocations: 11.94 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003507/0.3751, allocations: 67.66 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003808/0.3755, allocations: 135.4 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000655/0.3762, allocations: 219 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.3764, allocations: 183.5 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.3765, allocations: 29.55 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.3767, allocations: 71.69 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.3768, allocations: 75.69 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.3768, allocations: 12 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.377, allocations: 71.89 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.836e-05/0.3771, allocations: 55.77 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.698e-05/0.3772, allocations: 83.48 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.3775, allocations: 248.8 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3775, allocations: 0 / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3775, allocations: 0 / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3775, allocations: 0 / 413.1 MB, free: 13.14 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.0007018/0.3782, allocations: 0.535 MB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3783, allocations: 8.031 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.141e-05/0.3783, allocations: 42.73 kB / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.603e-05/0.3784, allocations: 20.66 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.3788, allocations: 299.5 kB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.3789, allocations: 8.312 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/0.3789, allocations: 11.94 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003529/0.3792, allocations: 159.6 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.3793, allocations: 0 / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.3793, allocations: 0 / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.3793, allocations: 0 / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.3794, allocations: 43.91 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005327/0.38, allocations: 382.4 kB / 414.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.3802, allocations: 115.9 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.566e-05/0.3803, allocations: 46.5 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.3803, allocations: 11.97 kB / 414.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.3805, allocations: 75.39 kB / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.3805, allocations: 0 / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003777/0.3809, allocations: 153.2 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.381, allocations: 166.5 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003494/0.3814, allocations: 342.5 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.3814, allocations: 33.64 kB / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.508e-05/0.3815, allocations: 124.1 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.3815, allocations: 23.73 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.3816, allocations: 25.72 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3817, allocations: 334.8 kB / 416 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.932e-05/0.3818, allocations: 27.98 kB / 416.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.3819, allocations: 78.86 kB / 416.1 MB, free: 9.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.382, allocations: 96.45 kB / 416.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.382, allocations: 3.938 kB / 416.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002249/0.3823, allocations: 117.3 kB / 416.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.3823, allocations: 8 kB / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3823, allocations: 3.984 kB / 416.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.3823, allocations: 4 kB / 416.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.3824, allocations: 23.92 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.3825, allocations: 8.125 kB / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.755e-05/0.3825, allocations: 7.938 kB / 416.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.3826, allocations: 4 kB / 416.4 MB, free: 9.492 MB / 334.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.0001377/0.3827, allocations: 161.7 kB / 416.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.008e-05/0.3828, allocations: 65.36 kB / 416.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.72e-05/0.3829, allocations: 25.7 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3829, allocations: 4 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3829, allocations: 4.062 kB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3829, allocations: 7.922 kB / 416.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.3831, allocations: 237.5 kB / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3831, allocations: 4 kB / 416.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.315e-05/0.3832, allocations: 15.92 kB / 416.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3832, allocations: 3.938 kB / 416.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.3832, allocations: 4 kB / 416.9 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.3832, allocations: 3.938 kB / 416.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3832, allocations: 0 / 416.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.3835, allocations: 170.4 kB / 417.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.651e-05/0.3836, allocations: 116.8 kB / 417.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.3836, allocations: 4 kB / 417.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.658e-05/0.3837, allocations: 8.062 kB / 417.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.3838, allocations: 11.92 kB / 417.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.3838, allocations: 4 kB / 417.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002295/0.384, allocations: 257.9 kB / 417.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.384, allocations: 0 / 417.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002668/0.3843, allocations: 32 kB / 417.5 MB, free: 8.266 MB / 334.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.001413/0.3857, allocations: 1.001 MB / 418.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002303/0.386, allocations: 67.91 kB / 418.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/0.386, allocations: 0 / 418.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.454e-05/0.3861, allocations: 43.98 kB / 418.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/0.3865, allocations: 76.83 kB / 418.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.389, allocations: 2.217 MB / 420.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.3893, allocations: 0.7436 MB / 421.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.3894, allocations: 37.5 kB / 421.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3896, allocations: 55.42 kB / 421.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3896, allocations: 0 / 421.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02541/0.415, allocations: 5.348 MB / 427.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.179/8.594, allocations: 10.62 kB / 427.1 MB, free: 14.75 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches