Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001618/0.001618, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2859, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003174/0.2891, allocations: 1.503 MB / 410.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005042/0.2896, allocations: 135.5 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.2897, allocations: 0 / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.053e-05/0.2898, allocations: 7.938 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.29, allocations: 7.938 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002999/0.2903, allocations: 39.52 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.2904, allocations: 27.92 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.488e-05/0.2905, allocations: 8 kB / 410.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.082e-05/0.2905, allocations: 7.938 kB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.034e-05/0.2906, allocations: 23.84 kB / 410.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.2906, allocations: 4 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.296e-06/0.2906, allocations: 0 / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.615e-05/0.2907, allocations: 15.98 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.856e-05/0.2907, allocations: 23.75 kB / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.2908, allocations: 38.8 kB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.185e-06/0.2909, allocations: 0 / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2909, allocations: 0 / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.2909, allocations: 0 / 410.6 MB, free: 15.7 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004782/0.2913, allocations: 359.2 kB / 410.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.2914, allocations: 16.02 kB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/0.2915, allocations: 34.75 kB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.2915, allocations: 12.89 kB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.2918, allocations: 180.3 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.2918, allocations: 4.375 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.991e-05/0.2918, allocations: 8.359 kB / 411.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.2921, allocations: 85.61 kB / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.2921, allocations: 7.938 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.2921, allocations: 3.984 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2921, allocations: 7.938 kB / 411.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.318e-05/0.2922, allocations: 15.94 kB / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003393/0.2925, allocations: 265.7 kB / 411.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.776e-05/0.2926, allocations: 45.09 kB / 411.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.815e-05/0.2927, allocations: 21.77 kB / 411.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.2927, allocations: 4 kB / 411.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.2927, allocations: 30.56 kB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.2928, allocations: 0 / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002407/0.293, allocations: 65.7 kB / 411.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.2931, allocations: 77.11 kB / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.2932, allocations: 141.3 kB / 411.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.2932, allocations: 25.7 kB / 412 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.253e-05/0.2933, allocations: 84.14 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.279e-05/0.2933, allocations: 4 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/0.2933, allocations: 21.64 kB / 412.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.2935, allocations: 319 kB / 412.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.49e-05/0.2935, allocations: 4 kB / 412.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.997e-05/0.2936, allocations: 17.7 kB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.014e-05/0.2936, allocations: 29.7 kB / 412.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2937, allocations: 8 kB / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001091/0.2938, allocations: 57.58 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.2938, allocations: 6.969 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2938, allocations: 0 / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2938, allocations: 0 / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.169e-05/0.2939, allocations: 7.984 kB / 412.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.2939, allocations: 4 kB / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.592e-05/0.2939, allocations: 0 / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.294, allocations: 4 kB / 412.5 MB, free: 13.48 MB / 334.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: 2 (step.y,sample1.y) * 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.0001002/0.2941, allocations: 125.8 kB / 412.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.275e-05/0.2941, allocations: 41.58 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.361e-05/0.2942, allocations: 15.83 kB / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.2942, allocations: 0 / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2942, allocations: 0 / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.2942, allocations: 0 / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.2944, allocations: 173.5 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2944, allocations: 0 / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.011e-05/0.2944, allocations: 7.938 kB / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2945, allocations: 4.031 kB / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.2945, allocations: 0 / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2945, allocations: 4 kB / 412.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2945, allocations: 0 / 412.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.2946, allocations: 164.3 kB / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.225e-05/0.2947, allocations: 93.02 kB / 413.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.2947, allocations: 8 kB / 413.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.892e-05/0.2948, allocations: 4 kB / 413.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.2948, allocations: 0 / 413.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.2949, allocations: 0 / 413.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.038e-05/0.2949, allocations: 107.2 kB / 413.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2949, allocations: 0 / 413.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.2952, allocations: 4 kB / 413.3 MB, free: 12.63 MB / 334.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: 2 (step.y,sample1.y) * 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.0004968/0.2957, allocations: 0.6937 MB / 414 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001294/0.2958, allocations: 23.92 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2958, allocations: 0 / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.042e-05/0.2959, allocations: 8.156 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.2962, allocations: 18.25 kB / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.2975, allocations: 1.264 MB / 415.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.2978, allocations: 0.6846 MB / 416 MB, free: 9.797 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.25e-05/0.2978, allocations: 7.984 kB / 416 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.873e-05/0.2979, allocations: 11.44 kB / 416 MB, free: 9.777 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2979, allocations: 0 / 416 MB, free: 9.777 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.3213, allocations: 1.381 MB / 417.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.35, allocations: 10.11 kB / 417.4 MB, free: 8.523 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y Variables in the result:time,step.startTime,sample1.y,step.y,periodicClock.factor,periodicClock.resolution