Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, 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.001262/0.001263, allocations: 206 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001306, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2654, allocations: 50.55 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003267/0.2687, allocations: 1.976 MB / 410.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.2709, allocations: 1.34 MB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.2711, allocations: 7.938 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.2715, allocations: 71.61 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004044/0.2719, allocations: 139.4 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008271/0.2728, allocations: 270.5 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002896/0.2731, allocations: 215.4 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.2732, allocations: 48.3 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.2734, allocations: 95.61 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.2735, allocations: 107.5 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.691e-05/0.2736, allocations: 16 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.2738, allocations: 79.94 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.2739, allocations: 63.77 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.274, allocations: 95.34 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004192/0.2745, allocations: 304.6 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2745, allocations: 0 / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2745, allocations: 0 / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.2745, allocations: 0 / 413.5 MB, free: 12.68 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008508/0.2754, allocations: 0.5973 MB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.2754, allocations: 12.03 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.367e-05/0.2755, allocations: 46.73 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.769e-05/0.2755, allocations: 32.56 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003782/0.2759, allocations: 307.4 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.2759, allocations: 12.38 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.276, allocations: 19.92 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005931/0.2766, allocations: 322.2 kB / 414.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.2766, allocations: 4 kB / 414.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.2766, allocations: 11.97 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2766, allocations: 7.938 kB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.2768, allocations: 67.91 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006376/0.2775, allocations: 414.3 kB / 415.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003941/0.2779, allocations: 192 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.2781, allocations: 102.5 kB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.2781, allocations: 4 kB / 415.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.2783, allocations: 79.38 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.874e-06/0.2783, allocations: 0 / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005569/0.2789, allocations: 249.4 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.279, allocations: 178 kB / 416.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.2794, allocations: 358.9 kB / 416.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.2794, allocations: 29.7 kB / 416.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.864e-05/0.2795, allocations: 140.5 kB / 416.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.253e-05/0.2796, allocations: 27.7 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.563e-05/0.2797, allocations: 53.92 kB / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2798, allocations: 338.8 kB / 417.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.543e-05/0.2799, allocations: 40.44 kB / 417.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.2801, allocations: 190.9 kB / 417.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/0.2804, allocations: 215.2 kB / 417.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2804, allocations: 0 / 417.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004006/0.2808, allocations: 237.2 kB / 417.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.2808, allocations: 8.375 kB / 417.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.2808, allocations: 4 kB / 417.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.2808, allocations: 4 kB / 417.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.281, allocations: 55.78 kB / 417.8 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.281, allocations: 7.938 kB / 417.8 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.2811, allocations: 15.94 kB / 417.9 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.2812, allocations: 8 kB / 417.9 MB, free: 7.938 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001764/0.2813, allocations: 184.5 kB / 418 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.2816, allocations: 141.2 kB / 418.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.048e-05/0.2816, allocations: 41.78 kB / 418.2 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.2817, allocations: 3.938 kB / 418.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.2817, allocations: 7.938 kB / 418.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2817, allocations: 3.984 kB / 418.2 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.2819, allocations: 269.4 kB / 418.5 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.2819, allocations: 0 / 418.5 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.2821, allocations: 31.92 kB / 418.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.2821, allocations: 4.047 kB / 418.5 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.2821, allocations: 7.984 kB / 418.5 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.2821, allocations: 7.938 kB / 418.5 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2821, allocations: 400 / 418.5 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.2825, allocations: 245.9 kB / 418.8 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.2826, allocations: 136.6 kB / 418.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/0.2827, allocations: 4 kB / 418.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.2828, allocations: 4 kB / 418.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.033e-05/0.2829, allocations: 15.92 kB / 418.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.2829, allocations: 8 kB / 419 MB, free: 6.738 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002418/0.2831, allocations: 253.9 kB / 419.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2831, allocations: 0 / 419.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003261/0.2835, allocations: 48 kB / 419.2 MB, free: 6.441 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001644/0.2851, allocations: 1.189 MB / 420.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000334/0.2855, allocations: 155.7 kB / 420.6 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.2855, allocations: 4 kB / 420.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.095e-05/0.2856, allocations: 27.98 kB / 420.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000495/0.2861, allocations: 116.7 kB / 420.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.289, allocations: 2.713 MB / 423.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.2893, allocations: 0.7751 MB / 424.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.2895, allocations: 42.75 kB / 424.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.2896, allocations: 79.41 kB / 424.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2896, allocations: 0 / 424.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.3159, allocations: 6.517 MB / 430.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/8.241, allocations: 18.59 kB / 430.9 MB, free: 10.82 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches