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.001786/0.001786, allocations: 114.3 kB / 17.06 MB, free: 5.969 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.00199/0.00199, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2542, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002633/0.2569, allocations: 1.507 MB / 401.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003569/0.2572, allocations: 134.2 kB / 401.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.661e-05/0.2573, allocations: 1.812 kB / 401.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.25e-05/0.2574, allocations: 3.938 kB / 401.9 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.2575, allocations: 5.875 kB / 401.9 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.2577, allocations: 41.48 kB / 401.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.412e-05/0.2578, allocations: 30.3 kB / 401.9 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.078e-05/0.2579, allocations: 10.34 kB / 402 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.046e-05/0.2579, allocations: 15.7 kB / 402 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.22e-05/0.258, allocations: 14.19 kB / 402 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.258, allocations: 4 kB / 402 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.067e-06/0.258, allocations: 0 / 402 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.988e-05/0.2581, allocations: 7.984 kB / 402 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.066e-05/0.2581, allocations: 23.81 kB / 402 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.2582, allocations: 42.77 kB / 402.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2582, allocations: 0 / 402.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2582, allocations: 0 / 402.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2582, allocations: 0 / 402.1 MB, free: 6.965 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.0004596/0.2587, allocations: 367.2 kB / 402.4 MB, free: 6.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.2587, allocations: 15.91 kB / 402.4 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.27e-05/0.2588, allocations: 34.75 kB / 402.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.618e-05/0.2588, allocations: 8.891 kB / 402.5 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.2591, allocations: 188.2 kB / 402.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-06/0.2591, allocations: 4.375 kB / 402.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.2591, allocations: 8.359 kB / 402.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.2593, allocations: 97.61 kB / 402.8 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2593, allocations: 3.938 kB / 402.8 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.2594, allocations: 0 / 402.8 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.2594, allocations: 0 / 402.8 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.301e-05/0.2595, allocations: 15.98 kB / 402.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003187/0.2598, allocations: 261.7 kB / 403 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.197e-05/0.2599, allocations: 45.22 kB / 403.1 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.603e-05/0.2599, allocations: 21.64 kB / 403.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.2599, allocations: 0 / 403.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.26, allocations: 38.56 kB / 403.1 MB, free: 5.676 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 2.585e-06/0.26, allocations: 3.984 kB / 403.2 MB, free: 5.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002278/0.2602, allocations: 65.56 kB / 403.2 MB, free: 5.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.402e-05/0.2603, allocations: 81.11 kB / 403.3 MB, free: 5.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.2604, allocations: 130.1 kB / 403.4 MB, free: 5.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.2604, allocations: 29.95 kB / 403.5 MB, free: 5.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.967e-05/0.2605, allocations: 84.14 kB / 403.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.047e-05/0.2605, allocations: 7.953 kB / 403.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/0.2606, allocations: 17.7 kB / 403.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2607, allocations: 314.8 kB / 403.9 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.01e-05/0.2608, allocations: 7.984 kB / 403.9 MB, free: 4.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.783e-05/0.2608, allocations: 17.72 kB / 403.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.118e-05/0.2609, allocations: 33.7 kB / 403.9 MB, free: 4.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2609, allocations: 3.938 kB / 403.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001133/0.261, allocations: 53.62 kB / 404 MB, free: 4.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.261, allocations: 4 kB / 404 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.261, allocations: 0 / 404 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.2611, allocations: 4 kB / 404 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.026e-05/0.2611, allocations: 12.05 kB / 404 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.2611, allocations: 0 / 404 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.355e-05/0.2612, allocations: 0 / 404 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.2612, allocations: 4 kB / 404 MB, free: 4.738 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 9.091e-05/0.2613, allocations: 117.8 kB / 404.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.524e-05/0.2614, allocations: 41.64 kB / 404.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.72e-05/0.2614, allocations: 3.875 kB / 404.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.2614, allocations: 0 / 404.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2614, allocations: 8.031 kB / 404.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2614, allocations: 3.938 kB / 404.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.2616, allocations: 173.5 kB / 404.3 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2616, allocations: 0 / 404.3 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.516e-05/0.2616, allocations: 11.88 kB / 404.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2617, allocations: 0 / 404.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.2617, allocations: 4 kB / 404.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2617, allocations: 0 / 404.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2617, allocations: 3.984 kB / 404.4 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.2619, allocations: 164.3 kB / 404.5 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.456e-05/0.262, allocations: 89.05 kB / 404.6 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.262, allocations: 8 kB / 404.6 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.38e-05/0.262, allocations: 0 / 404.6 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.61e-05/0.2621, allocations: 0 / 404.6 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.2621, allocations: 4 kB / 404.6 MB, free: 4.012 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.508e-05/0.2622, allocations: 110.4 kB / 404.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2622, allocations: 0 / 404.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002082/0.2624, allocations: 4 kB / 404.7 MB, free: 3.902 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.0004752/0.2629, allocations: 0.7014 MB / 405.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001276/0.263, allocations: 23.92 kB / 405.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.263, allocations: 0 / 405.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.128e-05/0.263, allocations: 4 kB / 405.5 MB, free: 3.145 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.2634, allocations: 18.67 kB / 405.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.2646, allocations: 1.26 MB / 406.7 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.265, allocations: 0.6883 MB / 407.4 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.552e-05/0.265, allocations: 4.078 kB / 407.4 MB, free: 1.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.138e-05/0.265, allocations: 19.38 kB / 407.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.265, allocations: 0 / 407.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.2862, allocations: 1.376 MB / 408.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.075, allocations: 15.5 kB / 408.8 MB, free: 15.79 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