Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001889/0.001889, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002663/0.002663, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2477, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002704/0.2504, allocations: 1.522 MB / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004055/0.2508, allocations: 135.5 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.554e-05/0.2509, allocations: 3.938 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.282e-05/0.251, allocations: 3.938 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.2511, allocations: 15.92 kB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.2513, allocations: 31.91 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.882e-05/0.2514, allocations: 39.91 kB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.606e-05/0.2515, allocations: 8 kB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.566e-05/0.2516, allocations: 15.92 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.679e-05/0.2516, allocations: 15.88 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.2517, allocations: 4 kB / 410.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.108e-05/0.2517, allocations: 4 kB / 410.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.133e-05/0.2517, allocations: 15.91 kB / 410.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.531e-05/0.2518, allocations: 23.88 kB / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.2519, allocations: 46.72 kB / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2519, allocations: 0 / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2519, allocations: 0 / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.2519, allocations: 0 / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004841/0.2524, allocations: 371.1 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2525, allocations: 12.02 kB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.159e-05/0.2525, allocations: 38.75 kB / 411 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.346e-05/0.2525, allocations: 4.891 kB / 411 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.2528, allocations: 200.2 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.2528, allocations: 8.312 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.2528, allocations: 4.375 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.2531, allocations: 117.5 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2531, allocations: 3.938 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.258e-06/0.2531, allocations: 4 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2531, allocations: 0 / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.389e-05/0.2532, allocations: 19.98 kB / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003149/0.2535, allocations: 253.8 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.2538, allocations: 146.2 kB / 411.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.874e-05/0.2538, allocations: 29.78 kB / 411.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.2539, allocations: 3.984 kB / 411.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.2539, allocations: 42.5 kB / 411.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 3.587e-06/0.2539, allocations: 4 kB / 411.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002695/0.2542, allocations: 77.56 kB / 411.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.2543, allocations: 81.05 kB / 412 MB, free: 14.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.2544, allocations: 130.1 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.2544, allocations: 29.7 kB / 412.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.601e-05/0.2545, allocations: 88.12 kB / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.2545, allocations: 3.953 kB / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.53e-05/0.2545, allocations: 25.84 kB / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.2547, allocations: 314.8 kB / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.91e-05/0.2547, allocations: 7.984 kB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.759e-05/0.2548, allocations: 31.42 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.728e-05/0.2549, allocations: 55.36 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.2549, allocations: 3.938 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001251/0.255, allocations: 61.62 kB / 412.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.255, allocations: 6.969 kB / 412.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.255, allocations: 0 / 412.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.2551, allocations: 8.125 kB / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.389e-05/0.2551, allocations: 15.92 kB / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2551, allocations: 0 / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.72e-05/0.2552, allocations: 7.953 kB / 412.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-06/0.2552, allocations: 0 / 412.8 MB, free: 13.19 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 0.0001039/0.2553, allocations: 121.8 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.475e-05/0.2554, allocations: 45.66 kB / 413 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.2554, allocations: 16.23 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2554, allocations: 4.266 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.2555, allocations: 4 kB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2555, allocations: 4 kB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/0.2557, allocations: 169.6 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2557, allocations: 7.922 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.211e-05/0.2557, allocations: 8 kB / 413.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2557, allocations: 0 / 413.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.2557, allocations: 0 / 413.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.2558, allocations: 4 kB / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2558, allocations: 0 / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.2559, allocations: 168.3 kB / 413.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.562e-05/0.256, allocations: 93.03 kB / 413.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.256, allocations: 4 kB / 413.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.985e-05/0.2561, allocations: 3.984 kB / 413.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.2561, allocations: 4 kB / 413.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-06/0.2562, allocations: 7.938 kB / 413.4 MB, free: 12.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.378e-05/0.2562, allocations: 113.5 kB / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2563, allocations: 0 / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.2565, allocations: 4 kB / 413.6 MB, free: 12.31 MB / 334.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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0005329/0.257, allocations: 0.7015 MB / 414.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.2572, allocations: 31.92 kB / 414.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2572, allocations: 0 / 414.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.157e-05/0.2572, allocations: 4 kB / 414.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.2575, allocations: 31.94 kB / 414.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.2589, allocations: 1.314 MB / 415.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.2592, allocations: 0.6846 MB / 416.3 MB, free: 9.383 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.859e-05/0.2592, allocations: 7.984 kB / 416.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.578e-05/0.2593, allocations: 15.44 kB / 416.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2593, allocations: 0 / 416.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.2813, allocations: 1.474 MB / 417.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.948/8.229, allocations: 7.328 kB / 417.8 MB, free: 7.988 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_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_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,step.startTime,assignClock.u,assignClock.y,sample1.y,step.y