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.00171/0.001711, 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.002128/0.002128, 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.572/1.572, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3952, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003183/0.3984, allocations: 1.495 MB / 410.2 MB, free: 64 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004162/0.3989, allocations: 139.5 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.584e-05/0.399, allocations: 0 / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.601e-05/0.399, allocations: 7.938 kB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.3992, allocations: 11.92 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002418/0.3994, allocations: 35.84 kB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.219e-05/0.3995, allocations: 23.92 kB / 410.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.3996, allocations: 19.97 kB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.087e-05/0.3997, allocations: 7.938 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.323e-05/0.3997, allocations: 11.88 kB / 410.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.236e-05/0.3998, allocations: 4 kB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.967e-06/0.3998, allocations: 0 / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.06e-05/0.3998, allocations: 11.98 kB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.707e-05/0.3999, allocations: 23.81 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.4, allocations: 47.81 kB / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4, allocations: 0 / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.4, allocations: 0 / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.4, allocations: 0 / 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.0004662/0.4005, allocations: 360.9 kB / 410.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.4006, allocations: 11.97 kB / 410.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.687e-05/0.4006, allocations: 38.75 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.604e-05/0.4006, allocations: 4.938 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.4009, allocations: 200 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-06/0.401, allocations: 4.375 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.401, allocations: 384 / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.4013, allocations: 85.61 kB / 411.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.4013, allocations: 3.938 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.4013, allocations: 12 kB / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4013, allocations: 3.938 kB / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.44e-05/0.4014, allocations: 11.98 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004185/0.4018, allocations: 253.8 kB / 411.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.81e-05/0.4019, allocations: 49.08 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.91e-05/0.402, allocations: 21.78 kB / 411.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.402, allocations: 0 / 411.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.402, allocations: 30.56 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/0.402, allocations: 3.938 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002553/0.4023, allocations: 61.83 kB / 411.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.4024, allocations: 89.05 kB / 411.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.4025, allocations: 134.1 kB / 411.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.4026, allocations: 25.7 kB / 412 MB, free: 14.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.247e-05/0.4026, allocations: 88.14 kB / 412 MB, free: 14.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.014e-05/0.4026, allocations: 0 / 412 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.4027, allocations: 21.62 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.4029, allocations: 310.8 kB / 412.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.9e-05/0.4029, allocations: 11.98 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.811e-05/0.403, allocations: 21.72 kB / 412.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.43e-05/0.403, allocations: 21.7 kB / 412.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.403, allocations: 3.938 kB / 412.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001065/0.4031, allocations: 65.66 kB / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.4032, allocations: 6.812 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.4032, allocations: 0 / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.4032, allocations: 4 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.15e-05/0.4033, allocations: 4 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.4033, allocations: 0 / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.714e-05/0.4033, allocations: 0 / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-06/0.4033, allocations: 4 kB / 412.5 MB, free: 13.51 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.0001328/0.4035, allocations: 133.7 kB / 412.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.065e-05/0.4035, allocations: 33.61 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.4036, allocations: 15.83 kB / 412.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.4036, allocations: 3.984 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.4036, allocations: 4 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.4036, allocations: 3.938 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.4038, allocations: 165.5 kB / 412.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.4038, allocations: 0 / 412.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.94e-05/0.4039, allocations: 11.98 kB / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4039, allocations: 0 / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.4039, allocations: 12.03 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.4039, allocations: 3.984 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.4039, allocations: 0 / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.4041, allocations: 160.2 kB / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.391e-05/0.4042, allocations: 89.09 kB / 413.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.4042, allocations: 4 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.95e-05/0.4043, allocations: 8.016 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.649e-05/0.4043, allocations: 0 / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.4043, allocations: 4 kB / 413.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.526e-05/0.4044, allocations: 102.5 kB / 413.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4044, allocations: 0 / 413.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002297/0.4046, allocations: 4 kB / 413.2 MB, free: 12.66 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.0005306/0.4052, allocations: 0.6975 MB / 413.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001264/0.4053, allocations: 15.98 kB / 414 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4053, allocations: 0 / 414 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.277e-05/0.4053, allocations: 11.94 kB / 414 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.4057, allocations: 19.8 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.4069, allocations: 1.268 MB / 415.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.4073, allocations: 0.6924 MB / 416 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.694e-05/0.4073, allocations: 4.125 kB / 416 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.4074, allocations: 15.38 kB / 416 MB, free: 9.793 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4074, allocations: 3.938 kB / 416 MB, free: 9.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.4271, allocations: 1.393 MB / 417.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.932/8.36, allocations: 7.859 kB / 417.4 MB, free: 8.527 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches