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.001232/0.001232, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001476/0.001476, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2794, allocations: 50.53 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002937/0.2824, allocations: 1.514 MB / 410.3 MB, free: 48 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004506/0.2829, allocations: 135.5 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.388e-05/0.283, allocations: 3.938 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.559e-05/0.2831, allocations: 0 / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.2832, allocations: 7.938 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000249/0.2835, allocations: 39.83 kB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.482e-05/0.2836, allocations: 27.92 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.758e-05/0.2837, allocations: 16 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.086e-05/0.2837, allocations: 7.938 kB / 410.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.487e-05/0.2838, allocations: 15.86 kB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.2838, allocations: 4 kB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.165e-06/0.2838, allocations: 0 / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.89e-05/0.2839, allocations: 11.98 kB / 410.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.789e-05/0.2839, allocations: 23.8 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.284, allocations: 38.8 kB / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.284, allocations: 0 / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2841, allocations: 0 / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.2841, allocations: 4 kB / 410.6 MB, free: 15.72 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.0004752/0.2845, allocations: 363.2 kB / 410.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.2846, allocations: 8.031 kB / 410.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.414e-05/0.2846, allocations: 34.73 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.2847, allocations: 8.891 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.2849, allocations: 192.2 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.285, allocations: 4.375 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.285, allocations: 4.375 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002556/0.2852, allocations: 89.61 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.2853, allocations: 3.938 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.2853, allocations: 4 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.2853, allocations: 0 / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.422e-05/0.2854, allocations: 11.98 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000303/0.2857, allocations: 269.7 kB / 411.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.247e-05/0.2858, allocations: 41.09 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.805e-05/0.2858, allocations: 25.77 kB / 411.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.2859, allocations: 4 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.2859, allocations: 38.5 kB / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.2859, allocations: 3.938 kB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002299/0.2862, allocations: 57.67 kB / 411.7 MB, free: 14.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.2862, allocations: 85.05 kB / 411.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.2863, allocations: 138.3 kB / 411.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.2864, allocations: 25.7 kB / 412 MB, free: 14.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.564e-05/0.2864, allocations: 88.14 kB / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.115e-06/0.2864, allocations: 0 / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/0.2865, allocations: 21.7 kB / 412.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.2866, allocations: 310.8 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.004e-05/0.2866, allocations: 4 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.952e-05/0.2867, allocations: 29.7 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.836e-05/0.2867, allocations: 25.64 kB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2867, allocations: 3.938 kB / 412.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001076/0.2868, allocations: 53.64 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2869, allocations: 4 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.2869, allocations: 128 / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.2869, allocations: 11.98 kB / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.292e-05/0.287, allocations: 7.984 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.287, allocations: 0 / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.724e-05/0.287, allocations: 3.938 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.287, allocations: 4 kB / 412.5 MB, free: 13.49 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 9.177e-05/0.2871, allocations: 121.7 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.899e-05/0.2872, allocations: 41.64 kB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.809e-05/0.2872, allocations: 11.83 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.2872, allocations: 4.031 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.2873, allocations: 4 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2873, allocations: 0 / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.2874, allocations: 173.5 kB / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2874, allocations: 0 / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.763e-05/0.2875, allocations: 7.938 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2875, allocations: 0 / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.567e-06/0.2875, allocations: 4 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2875, allocations: 0 / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2875, allocations: 0 / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001554/0.2877, allocations: 164.3 kB / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.657e-05/0.2877, allocations: 93.05 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.2878, allocations: 4 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.694e-05/0.2878, allocations: 0 / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.2878, allocations: 0 / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.2879, allocations: 4 kB / 413.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.275e-05/0.2879, allocations: 110.5 kB / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2879, allocations: 0 / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002208/0.2882, allocations: 7.938 kB / 413.3 MB, free: 12.65 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.0004734/0.2886, allocations: 0.6937 MB / 414 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001243/0.2888, allocations: 23.97 kB / 414 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2888, allocations: 0 / 414 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.411e-05/0.2888, allocations: 7.938 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.2892, allocations: 19.58 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.2903, allocations: 1.264 MB / 415.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.2905, allocations: 0.6884 MB / 416 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.806e-05/0.2906, allocations: 7.984 kB / 416 MB, free: 9.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.313e-05/0.2906, allocations: 11.44 kB / 416 MB, free: 9.789 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2906, allocations: 0 / 416 MB, free: 9.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01678/0.3074, allocations: 1.388 MB / 417.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.547/7.854, allocations: 7.859 kB / 417.4 MB, free: 8.531 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.0.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