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.001128/0.001128, allocations: 109.6 kB / 17.06 MB, free: 6.004 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.001053/0.001053, allocations: 191 kB / 18 MB, free: 5.09 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.283/1.283, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009159/0.0009161, allocations: 47.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.238, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002676/0.2407, allocations: 1.492 MB / 401.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003981/0.2411, allocations: 139.4 kB / 401.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.451e-05/0.2412, allocations: 5.281 kB / 401.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.045e-05/0.2413, allocations: 3.938 kB / 401.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.2414, allocations: 10.45 kB / 401.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.2416, allocations: 38.38 kB / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.481e-05/0.2417, allocations: 25.39 kB / 401.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.64e-05/0.2418, allocations: 15.94 kB / 402 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.971e-05/0.2418, allocations: 15.92 kB / 402 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.756e-05/0.2419, allocations: 11.88 kB / 402 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.2419, allocations: 0 / 402 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.458e-06/0.2419, allocations: 4 kB / 402 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.286e-05/0.2419, allocations: 15.97 kB / 402 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.771e-05/0.242, allocations: 19.81 kB / 402 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.968e-05/0.2421, allocations: 38.78 kB / 402.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2421, allocations: 0 / 402.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2421, allocations: 0 / 402.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2421, allocations: 4 kB / 402.1 MB, free: 6.988 MB / 318.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.000408/0.2425, allocations: 363.2 kB / 402.4 MB, free: 6.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.2426, allocations: 8.031 kB / 402.4 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.851e-05/0.2426, allocations: 34.75 kB / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.41e-05/0.2426, allocations: 4.891 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.2428, allocations: 208.1 kB / 402.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.656e-06/0.2429, allocations: 384 / 402.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.2429, allocations: 4.375 kB / 402.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.2431, allocations: 89.67 kB / 402.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.2431, allocations: 11.81 kB / 402.8 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.2431, allocations: 0 / 402.8 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.2431, allocations: 0 / 402.8 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.755e-05/0.2432, allocations: 19.98 kB / 402.8 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002773/0.2435, allocations: 249.8 kB / 403 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.056e-05/0.2436, allocations: 53.08 kB / 403.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.455e-05/0.2436, allocations: 13.78 kB / 403.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.2437, allocations: 4 kB / 403.1 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.2437, allocations: 34.56 kB / 403.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.2437, allocations: 0 / 403.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002132/0.2439, allocations: 65.56 kB / 403.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.244, allocations: 85.05 kB / 403.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.2441, allocations: 129.7 kB / 403.4 MB, free: 5.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.2441, allocations: 37.7 kB / 403.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.172e-05/0.2442, allocations: 84.12 kB / 403.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.416e-06/0.2442, allocations: 3.953 kB / 403.5 MB, free: 5.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.2442, allocations: 17.72 kB / 403.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.256e-05/0.2443, allocations: 314.8 kB / 403.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.96e-05/0.2444, allocations: 15.98 kB / 403.9 MB, free: 4.914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.304e-05/0.2444, allocations: 17.72 kB / 403.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.45e-05/0.2445, allocations: 25.7 kB / 403.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2445, allocations: 3.938 kB / 403.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001019/0.2446, allocations: 49.62 kB / 404 MB, free: 4.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.2446, allocations: 8 kB / 404 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.2446, allocations: 0 / 404 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.2446, allocations: 8.109 kB / 404 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.736e-05/0.2447, allocations: 4 kB / 404 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-06/0.2447, allocations: 0 / 404 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.842e-05/0.2447, allocations: 4 kB / 404 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.2448, allocations: 4 kB / 404 MB, free: 4.773 MB / 318.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.437e-05/0.2448, allocations: 121.7 kB / 404.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.493e-05/0.2449, allocations: 41.66 kB / 404.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.2449, allocations: 7.875 kB / 404.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2449, allocations: 4.031 kB / 404.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2449, allocations: 3.938 kB / 404.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.245, allocations: 0 / 404.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.2451, allocations: 177.5 kB / 404.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2451, allocations: 0 / 404.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.828e-05/0.2452, allocations: 11.98 kB / 404.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2452, allocations: 0 / 404.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.2452, allocations: 0 / 404.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2452, allocations: 4 kB / 404.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2452, allocations: 0 / 404.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001442/0.2454, allocations: 168.2 kB / 404.5 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/0.2454, allocations: 93.05 kB / 404.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.2454, allocations: 0 / 404.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.872e-05/0.2455, allocations: 0 / 404.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.2455, allocations: 7.984 kB / 404.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.2455, allocations: 0 / 404.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.936e-05/0.2456, allocations: 107.3 kB / 404.7 MB, free: 3.934 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2456, allocations: 0 / 404.7 MB, free: 3.934 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002221/0.2458, allocations: 4 kB / 404.7 MB, free: 3.93 MB / 318.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.0003902/0.2462, allocations: 0.6975 MB / 405.4 MB, free: 3.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001171/0.2464, allocations: 19.98 kB / 405.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2464, allocations: 0 / 405.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.026e-05/0.2464, allocations: 8 kB / 405.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.2467, allocations: 28.08 kB / 405.5 MB, free: 3.152 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.2478, allocations: 1.256 MB / 406.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.2481, allocations: 0.6883 MB / 407.4 MB, free: 1.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.393e-05/0.2481, allocations: 0 / 407.4 MB, free: 1.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.2481, allocations: 15.44 kB / 407.4 MB, free: 1.074 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2481, allocations: 0 / 407.4 MB, free: 1.074 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.2648, allocations: 1.387 MB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.505/7.77, allocations: 14.78 kB / 408.8 MB, free: 15.81 MB / 334.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