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.001621/0.001621, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001999/0.001999, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 66.81 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1121, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002813/0.115, allocations: 1.496 MB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000375/0.1154, allocations: 135.6 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.716e-05/0.1155, allocations: 0 / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.014e-05/0.1155, allocations: 3.938 kB / 359.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.1156, allocations: 15.92 kB / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.1159, allocations: 31.91 kB / 359.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.291e-05/0.116, allocations: 27.92 kB / 359.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.17e-05/0.1161, allocations: 11.98 kB / 359.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.889e-05/0.1161, allocations: 19.92 kB / 359.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.062e-05/0.1162, allocations: 15.86 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.1162, allocations: 4 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.062e-05/0.1162, allocations: 0 / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.769e-05/0.1163, allocations: 11.98 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.047e-05/0.1163, allocations: 19.81 kB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.1164, allocations: 39.83 kB / 359.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1164, allocations: 0 / 359.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1164, allocations: 4 kB / 359.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1165, allocations: 0 / 359.4 MB, free: 12.15 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.0004249/0.1169, allocations: 367.5 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1169, allocations: 12.03 kB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.922e-05/0.117, allocations: 30.75 kB / 359.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.117, allocations: 8.844 kB / 359.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.1172, allocations: 188.2 kB / 360 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.656e-06/0.1172, allocations: 384 / 360 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.1172, allocations: 4.312 kB / 360 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.1175, allocations: 97.61 kB / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.1175, allocations: 3.938 kB / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.1175, allocations: 0 / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.1175, allocations: 0 / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.2e-05/0.1176, allocations: 11.98 kB / 360.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003104/0.1179, allocations: 269.7 kB / 360.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.398e-05/0.118, allocations: 49.09 kB / 360.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.463e-05/0.118, allocations: 17.77 kB / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.1181, allocations: 0 / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.1181, allocations: 38.5 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.1181, allocations: 4 kB / 360.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.000216/0.1183, allocations: 61.61 kB / 360.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.1184, allocations: 77.11 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.1185, allocations: 130.1 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.1185, allocations: 25.7 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.479e-05/0.1186, allocations: 92.3 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.424e-06/0.1186, allocations: 4 kB / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.1186, allocations: 21.7 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.256e-05/0.1187, allocations: 310.8 kB / 361.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.026e-05/0.1188, allocations: 8 kB / 361.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.305e-05/0.1188, allocations: 21.7 kB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.212e-05/0.1189, allocations: 33.7 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1189, allocations: 3.938 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001059/0.119, allocations: 45.69 kB / 361.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.119, allocations: 4 kB / 361.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1191, allocations: 4 kB / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.1191, allocations: 0 / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.352e-05/0.1191, allocations: 7.938 kB / 361.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1192, allocations: 3.984 kB / 361.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.579e-05/0.1192, allocations: 11.97 kB / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.1192, allocations: 0 / 361.3 MB, free: 9.941 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: 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 8.135e-05/0.1193, allocations: 121.7 kB / 361.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.048e-05/0.1194, allocations: 41.69 kB / 361.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.636e-05/0.1194, allocations: 7.828 kB / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1194, allocations: 4 kB / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1194, allocations: 0 / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1194, allocations: 0 / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.1196, allocations: 173.6 kB / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1196, allocations: 0 / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.114e-05/0.1196, allocations: 8 kB / 361.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1196, allocations: 7.938 kB / 361.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.1197, allocations: 3.938 kB / 361.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.1197, allocations: 3.938 kB / 361.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1197, allocations: 0 / 361.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001826/0.1199, allocations: 160.2 kB / 361.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-05/0.1199, allocations: 100.9 kB / 362 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.12, allocations: 4 kB / 362 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.983e-05/0.12, allocations: 0 / 362 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.861e-05/0.1201, allocations: 4 kB / 362 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.1201, allocations: 0 / 362 MB, free: 9.207 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.872e-05/0.1201, allocations: 109.6 kB / 362.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1201, allocations: 0 / 362.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.1204, allocations: 0 / 362.1 MB, free: 9.102 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: 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.0004045/0.1208, allocations: 0.6936 MB / 362.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.1209, allocations: 24.02 kB / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1209, allocations: 3.938 kB / 362.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.378e-05/0.121, allocations: 7.984 kB / 362.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.1213, allocations: 20.02 kB / 362.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.1225, allocations: 1.26 MB / 364.1 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.1229, allocations: 0.6924 MB / 364.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.318e-05/0.1229, allocations: 3.906 kB / 364.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.374e-05/0.123, allocations: 11.44 kB / 364.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.123, allocations: 0 / 364.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01981/0.1428, allocations: 1.355 MB / 366.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.446/7.589, allocations: 14.92 kB / 366.2 MB, free: 4.996 MB / 302.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