Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.001383/0.001383, 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.001344/0.001344, 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.399/1.399, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 68.08 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1266, allocations: 50.52 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1): time 0.002848/0.1295, allocations: 1.497 MB / 359.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003771/0.1299, allocations: 139.5 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.409e-05/0.13, allocations: 4 kB / 359.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.09e-05/0.13, allocations: 3.938 kB / 359.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001135/0.1302, allocations: 11.92 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.1304, allocations: 35.91 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.473e-05/0.1305, allocations: 35.86 kB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.1306, allocations: 19.97 kB / 359.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.029e-05/0.1306, allocations: 11.94 kB / 359.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.864e-05/0.1307, allocations: 15.91 kB / 359.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.1307, allocations: 4 kB / 359.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.101e-05/0.1307, allocations: 0 / 359.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.97e-05/0.1308, allocations: 15.94 kB / 359.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.004e-05/0.1308, allocations: 23.86 kB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.1309, allocations: 51.75 kB / 359.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.131, allocations: 0 / 359.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.131, allocations: 0 / 359.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.131, allocations: 0 / 359.4 MB, free: 12.14 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000561/0.1315, allocations: 363.5 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.1316, allocations: 11.97 kB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.1316, allocations: 30.75 kB / 359.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.92e-05/0.1317, allocations: 12.84 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.1318, allocations: 190.9 kB / 360 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.1319, allocations: 8.312 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.1319, allocations: 4.375 kB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.1322, allocations: 109.5 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.1322, allocations: 3.938 kB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1322, allocations: 11.98 kB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1322, allocations: 0 / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.811e-05/0.1323, allocations: 12 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000283/0.1326, allocations: 261.7 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.1327, allocations: 138.2 kB / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.326e-05/0.1328, allocations: 25.78 kB / 360.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.1328, allocations: 3.984 kB / 360.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.1328, allocations: 34.5 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.1329, allocations: 0 / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002126/0.1331, allocations: 69.62 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.1331, allocations: 85.11 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.1332, allocations: 133.7 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.1333, allocations: 29.7 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.136e-05/0.1333, allocations: 80.14 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.007e-05/0.1333, allocations: 3.938 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.1334, allocations: 21.72 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1335, allocations: 323 kB / 361.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.062e-05/0.1335, allocations: 4 kB / 361.4 MB, free: 9.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.074e-05/0.1336, allocations: 35.42 kB / 361.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.449e-05/0.1337, allocations: 39.38 kB / 361.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1337, allocations: 3.938 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001209/0.1338, allocations: 65.47 kB / 361.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1338, allocations: 6.969 kB / 361.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1338, allocations: 7.984 kB / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1339, allocations: 3.938 kB / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.035e-05/0.1339, allocations: 0 / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.1339, allocations: 4 kB / 361.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.922e-05/0.1339, allocations: 4.125 kB / 361.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.425e-06/0.1339, allocations: 4 kB / 361.5 MB, free: 9.738 MB / 302.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 9.175e-05/0.134, allocations: 122.8 kB / 361.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.573e-05/0.1341, allocations: 53.53 kB / 361.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.161e-05/0.1342, allocations: 12.23 kB / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1342, allocations: 7.922 kB / 361.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1342, allocations: 4 kB / 361.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1342, allocations: 3.984 kB / 361.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.1344, allocations: 173.6 kB / 361.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1344, allocations: 4 kB / 361.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.114e-06/0.1344, allocations: 0 / 361.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1344, allocations: 0 / 361.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.1344, allocations: 0 / 361.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1344, allocations: 4 kB / 361.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1344, allocations: 0 / 361.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002045/0.1346, allocations: 164.2 kB / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.481e-05/0.1347, allocations: 93.09 kB / 362.2 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.1347, allocations: 0 / 362.2 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.673e-05/0.1348, allocations: 3.984 kB / 362.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.1348, allocations: 4 kB / 362.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-06/0.1348, allocations: 0 / 362.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.22e-05/0.1349, allocations: 105.7 kB / 362.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1349, allocations: 0 / 362.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002269/0.1351, allocations: 7.906 kB / 362.3 MB, free: 8.883 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: 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.0004649/0.1356, allocations: 0.6976 MB / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001239/0.1357, allocations: 27.92 kB / 363 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1357, allocations: 0 / 363 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3e-05/0.1358, allocations: 12.19 kB / 363 MB, free: 8.117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.1362, allocations: 28.02 kB / 363.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1374, allocations: 1.302 MB / 364.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.1378, allocations: 0.6962 MB / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.298e-05/0.1378, allocations: 0 / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.349e-05/0.1378, allocations: 15.44 kB / 365.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1379, allocations: 0 / 365.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.1579, allocations: 1.434 MB / 366.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.581/7.739, allocations: 8 kB / 366.5 MB, free: 4.598 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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_BooleanSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable sample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.csv failed! " Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,step.startTime,periodicClock.factor,periodicClock.resolution,assignClock.u,assignClock.y