Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001981/0.001981, 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.002461/0.002461, allocations: 202 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.568/1.568, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00251/0.00251, allocations: 67.83 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3817, allocations: 50.54 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.003825/0.3856, allocations: 1.887 MB / 410.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.388, allocations: 1.29 MB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.3882, allocations: 7.938 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003664/0.3886, allocations: 71.66 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004357/0.389, allocations: 135.4 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008404/0.3899, allocations: 230.9 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003103/0.3902, allocations: 183.4 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.3904, allocations: 29.56 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.3905, allocations: 75.69 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.3907, allocations: 79.67 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.3907, allocations: 12 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002312/0.3909, allocations: 67.89 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.3911, allocations: 55.83 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.607e-05/0.3912, allocations: 83.41 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004532/0.3916, allocations: 236.9 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3916, allocations: 0 / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3916, allocations: 0 / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.3917, allocations: 4 kB / 413.2 MB, free: 13.1 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.0009425/0.3926, allocations: 0.535 MB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.3927, allocations: 8.031 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.623e-05/0.3927, allocations: 42.73 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.262e-05/0.3928, allocations: 28.66 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005419/0.3934, allocations: 283.5 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.3934, allocations: 8.375 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.3934, allocations: 11.88 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.3938, allocations: 159.6 kB / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.3938, allocations: 0 / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.3939, allocations: 7.984 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3939, allocations: 4 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.394, allocations: 31.92 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005959/0.3946, allocations: 386.4 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.3949, allocations: 115.9 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.569e-05/0.395, allocations: 50.56 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-05/0.395, allocations: 0 / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001924/0.3952, allocations: 79.31 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.924e-06/0.3952, allocations: 0 / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004224/0.3957, allocations: 153.5 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.3958, allocations: 162.2 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.3961, allocations: 346.5 kB / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.3962, allocations: 29.7 kB / 415.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.813e-05/0.3963, allocations: 128.1 kB / 415.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.949e-05/0.3963, allocations: 23.73 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-05/0.3964, allocations: 29.72 kB / 415.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3965, allocations: 334.8 kB / 416.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.02e-05/0.3966, allocations: 23.98 kB / 416.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.3967, allocations: 90.91 kB / 416.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.3968, allocations: 92.41 kB / 416.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3969, allocations: 0 / 416.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002417/0.3971, allocations: 121.3 kB / 416.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.3971, allocations: 8 kB / 416.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.3971, allocations: 0 / 416.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.3972, allocations: 4.125 kB / 416.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3973, allocations: 19.98 kB / 416.4 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.3973, allocations: 7.938 kB / 416.4 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.726e-05/0.3974, allocations: 11.94 kB / 416.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.3974, allocations: 7.984 kB / 416.5 MB, free: 9.449 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,superSample1.y,superSample1.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.0001517/0.3976, allocations: 153.8 kB / 416.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.582e-05/0.3977, allocations: 69.34 kB / 416.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.841e-05/0.3978, allocations: 25.7 kB / 416.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3978, allocations: 8.062 kB / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3978, allocations: 0 / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3978, allocations: 3.938 kB / 416.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.398, allocations: 245.5 kB / 417 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.398, allocations: 0 / 417 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.902e-05/0.3981, allocations: 11.98 kB / 417 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.3981, allocations: 3.938 kB / 417 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.3981, allocations: 4 kB / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.3981, allocations: 0 / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3981, allocations: 0 / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.3984, allocations: 170.4 kB / 417.1 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.3986, allocations: 116.9 kB / 417.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.3986, allocations: 8 kB / 417.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.64e-05/0.3987, allocations: 4 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.934e-05/0.3988, allocations: 19.86 kB / 417.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.3988, allocations: 4 kB / 417.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002719/0.3991, allocations: 249.9 kB / 417.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3991, allocations: 0 / 417.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000312/0.3994, allocations: 36 kB / 417.6 MB, free: 8.23 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,superSample1.y,sample1.y,superSample1.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.001689/0.4011, allocations: 1.008 MB / 418.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002842/0.4014, allocations: 75.91 kB / 418.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4014, allocations: 0 / 418.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.185e-05/0.4015, allocations: 35.92 kB / 418.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004883/0.402, allocations: 73.78 kB / 418.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.4049, allocations: 2.225 MB / 421 MB, free: 4.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.4053, allocations: 0.7436 MB / 421.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.4055, allocations: 25.55 kB / 421.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.4056, allocations: 59.42 kB / 421.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of SimCode: time 1.553e-06/0.4056, allocations: 0 / 421.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02915/0.4347, allocations: 5.369 MB / 427.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.928/8.363, allocations: 3.938 kB / 427.2 MB, free: 14.71 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches