Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 107.4 kB / 16.92 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 191 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 43.44 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1083, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.00274/0.1111, allocations: 1.491 MB / 351.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003423/0.1115, allocations: 137 kB / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.038e-05/0.1116, allocations: 0 / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.084e-05/0.1116, allocations: 3.938 kB / 351.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.1118, allocations: 19.92 kB / 351.8 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.112, allocations: 29.41 kB / 351.8 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.515e-05/0.1121, allocations: 27.92 kB / 351.9 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.1122, allocations: 16 kB / 351.9 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.514e-05/0.1123, allocations: 15.92 kB / 351.9 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.27e-05/0.1123, allocations: 11.88 kB / 351.9 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.889e-05/0.1123, allocations: 4 kB / 351.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.16e-05/0.1123, allocations: 0 / 351.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.013e-05/0.1124, allocations: 15.97 kB / 351.9 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.403e-05/0.1124, allocations: 19.81 kB / 351.9 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.1125, allocations: 39.83 kB / 352 MB, free: 2.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1126, allocations: 4 kB / 352 MB, free: 2.477 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1126, allocations: 4 kB / 352 MB, free: 2.473 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.1126, allocations: 0 / 352 MB, free: 2.473 MB / 286.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.00044/0.113, allocations: 355.5 kB / 352.3 MB, free: 2.074 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1131, allocations: 15.97 kB / 352.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.1131, allocations: 34.75 kB / 352.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.1131, allocations: 8.844 kB / 352.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.1133, allocations: 192.1 kB / 352.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.1134, allocations: 4.375 kB / 352.6 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.1134, allocations: 4.375 kB / 352.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.1136, allocations: 89.61 kB / 352.7 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1136, allocations: 3.938 kB / 352.7 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.1136, allocations: 0 / 352.7 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1136, allocations: 0 / 352.7 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.012e-05/0.1137, allocations: 19.98 kB / 352.7 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000259/0.114, allocations: 257.8 kB / 353 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.337e-05/0.1141, allocations: 45.16 kB / 353 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.821e-05/0.1141, allocations: 21.77 kB / 353 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.1141, allocations: 4 kB / 353 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.1142, allocations: 46.44 kB / 353.1 MB, free: 1.191 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.1142, allocations: 0 / 353.1 MB, free: 1.191 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002179/0.1144, allocations: 65.52 kB / 353.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.1145, allocations: 77.11 kB / 353.2 MB, free: 1.027 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.1146, allocations: 138.4 kB / 353.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.1146, allocations: 25.7 kB / 353.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.47e-05/0.1146, allocations: 84.14 kB / 353.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.077e-06/0.1147, allocations: 3.906 kB / 353.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.1147, allocations: 13.72 kB / 353.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.1148, allocations: 322.8 kB / 353.8 MB, free: 424 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.644e-05/0.1148, allocations: 4 kB / 353.8 MB, free: 420 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.487e-05/0.1149, allocations: 21.7 kB / 353.8 MB, free: 392 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.525e-05/0.1149, allocations: 33.64 kB / 353.8 MB, free: 352 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1149, allocations: 3.938 kB / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001039/0.1151, allocations: 45.69 kB / 353.9 MB, free: 296 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.1151, allocations: 8 kB / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.1151, allocations: 128 / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.1151, allocations: 4 kB / 353.9 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.698e-05/0.1152, allocations: 4 kB / 353.9 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1152, allocations: 7.922 kB / 353.9 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.674e-05/0.1152, allocations: 4 kB / 353.9 MB, free: 268 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.1152, allocations: 0 / 353.9 MB, free: 268 kB / 286.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 7.016e-05/0.1153, allocations: 117.8 kB / 354 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.404e-05/0.1154, allocations: 41.59 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.27e-05/0.1154, allocations: 11.88 kB / 354.1 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1154, allocations: 4.031 kB / 354.1 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1154, allocations: 0 / 354.1 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1154, allocations: 3.938 kB / 354.1 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.1156, allocations: 165.6 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1156, allocations: 4 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.915e-05/0.1156, allocations: 4 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1156, allocations: 0 / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-06/0.1157, allocations: 0 / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1157, allocations: 0 / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1157, allocations: 7.875 kB / 354.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.1158, allocations: 168.2 kB / 354.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.005e-05/0.1159, allocations: 92.94 kB / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.1159, allocations: 0 / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.861e-05/0.116, allocations: 8 kB / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.645e-05/0.116, allocations: 3.984 kB / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.116, allocations: 0 / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.425e-05/0.1161, allocations: 110.1 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1161, allocations: 0 / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002144/0.1163, allocations: 8 kB / 354.7 MB, free: 15.42 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.0004101/0.1167, allocations: 0.6859 MB / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001155/0.1169, allocations: 23.98 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1169, allocations: 0 / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.331e-05/0.1169, allocations: 11.92 kB / 355.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.1173, allocations: 19.94 kB / 355.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.1183, allocations: 1.264 MB / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.1186, allocations: 0.6846 MB / 357.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.138e-05/0.1186, allocations: 8.125 kB / 357.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.508e-05/0.1186, allocations: 15.38 kB / 357.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1187, allocations: 0 / 357.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1363, allocations: 1.353 MB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.459/7.595, allocations: 3.75 kB / 358.7 MB, free: 11.32 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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