Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_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.0008313/0.0008314, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009635/0.0009635, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002177/0.0002177, allocations: 8 kB / 307.8 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09574, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.001463/0.09724, allocations: 1.281 MB / 360.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007255/0.09798, allocations: 0.5144 MB / 361.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.467e-05/0.09804, allocations: 4 kB / 361.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.511e-05/0.09808, allocations: 3.938 kB / 361.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.649e-05/0.09818, allocations: 7.922 kB / 361.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.0984, allocations: 47.91 kB / 361.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.521e-05/0.09848, allocations: 43.8 kB / 361.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.533e-05/0.09856, allocations: 15.97 kB / 361.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.769e-05/0.09865, allocations: 19.92 kB / 361.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.597e-05/0.09871, allocations: 19.86 kB / 361.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.09873, allocations: 4 kB / 361.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.661e-05/0.09877, allocations: 8 kB / 361.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.308e-05/0.09881, allocations: 11.92 kB / 361.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.49e-05/0.09885, allocations: 45.52 kB / 361.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.894e-05/0.09894, allocations: 47.8 kB / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.09895, allocations: 0 / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.09896, allocations: 0 / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.09897, allocations: 0 / 361.4 MB, free: 11.1 MB / 302.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.0003517/0.09933, allocations: 375.4 kB / 361.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.09936, allocations: 8.031 kB / 361.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.877e-05/0.0994, allocations: 34.69 kB / 361.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.09952, allocations: 20.83 kB / 361.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.09968, allocations: 196.2 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.09969, allocations: 384 / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-06/0.09971, allocations: 8.375 kB / 362.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.0999, allocations: 93.17 kB / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.391e-06/0.09991, allocations: 0 / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.09993, allocations: 4 kB / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.09994, allocations: 0 / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.596e-05/0.1, allocations: 23.98 kB / 362.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000248/0.1003, allocations: 265.7 kB / 362.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.751e-05/0.1004, allocations: 41.22 kB / 362.5 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.359e-05/0.1004, allocations: 25.77 kB / 362.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.1004, allocations: 3.938 kB / 362.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.1005, allocations: 34.56 kB / 362.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1005, allocations: 0 / 362.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.000213/0.1007, allocations: 81.61 kB / 362.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.1007, allocations: 77.11 kB / 362.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.1009, allocations: 140.5 kB / 362.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.1009, allocations: 29.7 kB / 362.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.993e-05/0.1009, allocations: 84.14 kB / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.189e-05/0.1009, allocations: 3.938 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.941e-05/0.101, allocations: 9.875 kB / 363 MB, free: 9.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.064e-05/0.1011, allocations: 330.8 kB / 363.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.028e-05/0.1011, allocations: 4 kB / 363.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.09e-05/0.1011, allocations: 29.64 kB / 363.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.091e-05/0.1012, allocations: 37.7 kB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1012, allocations: 0 / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000113/0.1014, allocations: 57.59 kB / 363.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.1014, allocations: 8 kB / 363.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.1014, allocations: 0 / 363.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.1014, allocations: 0 / 363.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.777e-05/0.1015, allocations: 15.98 kB / 363.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.1015, allocations: 0 / 363.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.471e-05/0.1015, allocations: 11.94 kB / 363.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.1015, allocations: 0 / 363.4 MB, free: 8.812 MB / 302.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: 0 () * 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 6.991e-05/0.1016, allocations: 121.7 kB / 363.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.1017, allocations: 45.58 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.51e-05/0.1017, allocations: 11.83 kB / 363.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1017, allocations: 0 / 363.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1017, allocations: 8.031 kB / 363.6 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1017, allocations: 0 / 363.6 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.1019, allocations: 169.6 kB / 363.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1019, allocations: 0 / 363.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.486e-05/0.1019, allocations: 11.98 kB / 363.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1019, allocations: 0 / 363.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-06/0.102, allocations: 3.938 kB / 363.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.102, allocations: 4 kB / 363.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.102, allocations: 3.984 kB / 363.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001545/0.1021, allocations: 172.2 kB / 364 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.1022, allocations: 85.11 kB / 364.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.1022, allocations: 3.984 kB / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.188e-05/0.1023, allocations: 4 kB / 364.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.238e-05/0.1023, allocations: 4.031 kB / 364.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.1023, allocations: 4 kB / 364.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.101e-05/0.1024, allocations: 109.5 kB / 364.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1024, allocations: 0 / 364.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002043/0.1026, allocations: 4 kB / 364.2 MB, free: 7.957 MB / 302.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: 0 () * 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.0003619/0.103, allocations: 0.7014 MB / 364.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.1031, allocations: 23.98 kB / 364.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1031, allocations: 3.938 kB / 364.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.84e-05/0.1031, allocations: 16.09 kB / 364.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.1034, allocations: 16.02 kB / 365 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.1046, allocations: 1.337 MB / 366.3 MB, free: 5.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.1048, allocations: 0.6887 MB / 367 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.55e-05/0.1048, allocations: 4.281 kB / 367 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.1049, allocations: 19.42 kB / 367 MB, free: 5 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1049, allocations: 0 / 367 MB, free: 5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01053/0.1154, allocations: 1.249 MB / 368.2 MB, free: 3.898 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.1156, allocations: 210.2 kB / 368.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/1.804, allocations: 2.953 kB / 368.5 MB, free: 3.645 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches