Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001494, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001811/0.001811, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 63.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3216, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.00408/0.3258, allocations: 1.917 MB / 410.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002405/0.3282, allocations: 1.305 MB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.3284, allocations: 4 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000353/0.3288, allocations: 67.61 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004291/0.3292, allocations: 135.4 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007905/0.33, allocations: 226.8 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003005/0.3303, allocations: 187.5 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.3305, allocations: 29.55 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.3306, allocations: 79.69 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.3308, allocations: 79.62 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.3308, allocations: 8 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002053/0.3311, allocations: 79.88 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.991e-05/0.3312, allocations: 47.84 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.869e-05/0.3313, allocations: 87.41 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.3317, allocations: 252.8 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3317, allocations: 0 / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3317, allocations: 0 / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.3317, allocations: 0 / 413.2 MB, free: 13.05 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008871/0.3326, allocations: 0.5428 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.3327, allocations: 8.031 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.83e-05/0.3327, allocations: 46.73 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.883e-05/0.3328, allocations: 24.66 kB / 413.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.3333, allocations: 295.5 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.3334, allocations: 4.375 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.3334, allocations: 15.94 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003753/0.3338, allocations: 168.4 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.3338, allocations: 0 / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.3338, allocations: 4 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.3338, allocations: 4 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.334, allocations: 39.86 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006404/0.3346, allocations: 482.4 kB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.3349, allocations: 142.5 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.335, allocations: 67.34 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.3351, allocations: 4.062 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.3353, allocations: 93.09 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.793e-06/0.3353, allocations: 0 / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004482/0.3357, allocations: 169.2 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.3359, allocations: 200.2 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003875/0.3363, allocations: 338.9 kB / 415.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.3363, allocations: 29.7 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.3364, allocations: 132.3 kB / 416 MB, free: 9.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.3364, allocations: 15.81 kB / 416 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.962e-05/0.3365, allocations: 33.7 kB / 416 MB, free: 9.898 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3366, allocations: 334.8 kB / 416.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.593e-05/0.3367, allocations: 23.98 kB / 416.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.3369, allocations: 99.95 kB / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.337, allocations: 97.08 kB / 416.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3371, allocations: 0 / 416.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002803/0.3373, allocations: 145.1 kB / 416.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3374, allocations: 6.969 kB / 416.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3374, allocations: 4 kB / 416.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.3374, allocations: 8.141 kB / 416.7 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.3375, allocations: 20 kB / 416.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3376, allocations: 4 kB / 416.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.272e-05/0.3377, allocations: 15.86 kB / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.3377, allocations: 4 kB / 416.8 MB, free: 9.094 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.00015/0.3378, allocations: 161.7 kB / 416.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-05/0.3379, allocations: 73.41 kB / 417 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.96e-05/0.338, allocations: 33.8 kB / 417 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.338, allocations: 4 kB / 417 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.338, allocations: 3.938 kB / 417 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.338, allocations: 3.938 kB / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002624/0.3383, allocations: 245.5 kB / 417.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3383, allocations: 0 / 417.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.958e-05/0.3384, allocations: 15.98 kB / 417.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.3384, allocations: 4 kB / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.3384, allocations: 4 kB / 417.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.3384, allocations: 4 kB / 417.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3385, allocations: 64 / 417.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.3388, allocations: 195.2 kB / 417.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.3389, allocations: 120.7 kB / 417.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.778e-05/0.339, allocations: 8 kB / 417.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.234e-05/0.339, allocations: 7.984 kB / 417.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.186e-05/0.3391, allocations: 15.94 kB / 417.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.3391, allocations: 7.984 kB / 417.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002812/0.3394, allocations: 249.9 kB / 417.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3394, allocations: 0 / 417.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.3398, allocations: 39.98 kB / 417.9 MB, free: 7.812 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001865/0.3417, allocations: 1.022 MB / 419 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003118/0.342, allocations: 83.84 kB / 419.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.342, allocations: 320 / 419.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.3421, allocations: 39.97 kB / 419.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005577/0.3427, allocations: 75.78 kB / 419.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003005/0.3457, allocations: 2.285 MB / 421.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.3461, allocations: 0.7514 MB / 422.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.3462, allocations: 29.53 kB / 422.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.3463, allocations: 67.34 kB / 422.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3463, allocations: 0 / 422.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.3752, allocations: 5.545 MB / 427.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.979/8.354, allocations: 24.11 kB / 427.9 MB, free: 13.95 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches