Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.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.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",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.001861/0.001861, allocations: 116.1 kB / 16.63 MB, free: 6.941 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.002439/0.002439, allocations: 193.9 kB / 17.55 MB, free: 6.039 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.537/1.537, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.00147, allocations: 50.44 kB / 300.2 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1255, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002703/0.1283, allocations: 0.9178 MB / 350.6 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003758/0.1287, allocations: 119.6 kB / 350.7 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.281e-05/0.1288, allocations: 4 kB / 350.7 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.202e-05/0.1289, allocations: 3.938 kB / 350.7 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.129, allocations: 3.984 kB / 350.7 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.1293, allocations: 43.84 kB / 350.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.1294, allocations: 35.92 kB / 350.8 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.1296, allocations: 19.98 kB / 350.8 MB, free: 3.512 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.993e-05/0.1296, allocations: 23.88 kB / 350.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.707e-05/0.1297, allocations: 15.92 kB / 350.9 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.1297, allocations: 0 / 350.9 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.093e-05/0.1297, allocations: 4 kB / 350.9 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.12e-05/0.1298, allocations: 19.91 kB / 350.9 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.751e-05/0.1298, allocations: 27.81 kB / 350.9 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.13, allocations: 43.81 kB / 351 MB, free: 3.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.13, allocations: 0 / 351 MB, free: 3.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.13, allocations: 0 / 351 MB, free: 3.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.13, allocations: 0 / 351 MB, free: 3.379 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005479/0.1305, allocations: 375.4 kB / 351.3 MB, free: 2.961 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.1306, allocations: 12.03 kB / 351.3 MB, free: 2.949 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.572e-05/0.1307, allocations: 38.73 kB / 351.4 MB, free: 2.902 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.634e-05/0.1307, allocations: 12.78 kB / 351.4 MB, free: 2.891 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.1309, allocations: 188.2 kB / 351.6 MB, free: 2.668 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.131, allocations: 4.375 kB / 351.6 MB, free: 2.664 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.131, allocations: 8.375 kB / 351.6 MB, free: 2.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003421/0.1313, allocations: 139.7 kB / 351.7 MB, free: 2.508 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1313, allocations: 3.938 kB / 351.7 MB, free: 2.504 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.1314, allocations: 4 kB / 351.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.1314, allocations: 0 / 351.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.328e-05/0.1314, allocations: 19.98 kB / 351.7 MB, free: 2.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000213/0.1317, allocations: 177.5 kB / 351.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.1318, allocations: 70.66 kB / 352 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.102e-05/0.1319, allocations: 36.89 kB / 352 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.1319, allocations: 0 / 352 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.132, allocations: 34.56 kB / 352.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 5.591e-06/0.132, allocations: 0 / 352.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002517/0.1323, allocations: 93.69 kB / 352.1 MB, free: 2 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.1323, allocations: 63.41 kB / 352.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.1325, allocations: 141.2 kB / 352.3 MB, free: 1.781 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.1325, allocations: 25.7 kB / 352.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.912e-05/0.1326, allocations: 88.12 kB / 352.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.186e-05/0.1326, allocations: 0 / 352.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.904e-05/0.1327, allocations: 29.62 kB / 352.5 MB, free: 1.625 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1329, allocations: 318.8 kB / 352.8 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.805e-05/0.1329, allocations: 8 kB / 352.8 MB, free: 1.297 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.189e-05/0.133, allocations: 58.86 kB / 352.9 MB, free: 1.215 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.1331, allocations: 74.75 kB / 352.9 MB, free: 1.117 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1331, allocations: 0 / 352.9 MB, free: 1.117 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001509/0.1332, allocations: 89.48 kB / 353 MB, free: 1.023 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.1333, allocations: 14.12 kB / 353 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.1333, allocations: 4.25 kB / 353 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.1333, allocations: 4 kB / 353 MB, free: 1.004 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.343e-05/0.1333, allocations: 4 kB / 353.1 MB, free: 1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.1334, allocations: 0 / 353.1 MB, free: 1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.273e-05/0.1334, allocations: 7.906 kB / 353.1 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.1334, allocations: 8 kB / 353.1 MB, free: 0.9844 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001335/0.1336, allocations: 125.8 kB / 353.2 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.1337, allocations: 73.53 kB / 353.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.339e-05/0.1337, allocations: 8.375 kB / 353.3 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1337, allocations: 8 kB / 353.3 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1338, allocations: 0 / 353.3 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.1338, allocations: 0 / 353.3 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.1339, allocations: 169.6 kB / 353.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1339, allocations: 0 / 353.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.789e-05/0.134, allocations: 7.938 kB / 353.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.134, allocations: 3.938 kB / 353.5 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.134, allocations: 192 / 353.5 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.134, allocations: 0 / 353.5 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.134, allocations: 7.938 kB / 353.5 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.1342, allocations: 105 kB / 353.6 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.827e-05/0.1343, allocations: 92.94 kB / 353.7 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.1343, allocations: 11.94 kB / 353.7 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.677e-05/0.1344, allocations: 3.938 kB / 353.7 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-06/0.1344, allocations: 0 / 353.7 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-06/0.1344, allocations: 0 / 353.7 MB, free: 280 kB / 286.1 MB Notification: Performance of sorting global known variables: time 9.794e-05/0.1345, allocations: 107.2 kB / 353.8 MB, free: 172 kB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1345, allocations: 0 / 353.8 MB, free: 172 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002143/0.1347, allocations: 8 kB / 353.8 MB, free: 164 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,xor.u1,xor.u2,xor.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0006985/0.1354, allocations: 0.6669 MB / 354.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001725/0.1356, allocations: 44.3 kB / 354.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.1356, allocations: 4.125 kB / 354.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.442e-06/0.1356, allocations: 0 / 354.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/0.1361, allocations: 41.14 kB / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.1376, allocations: 1.343 MB / 355.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.138, allocations: 0.7001 MB / 356.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.454e-05/0.138, allocations: 0 / 356.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.445e-05/0.1381, allocations: 19.42 kB / 356.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1381, allocations: 0 / 356.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01324/0.1513, allocations: 1.581 MB / 358.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.1516, allocations: 220.2 kB / 358.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.023/2.174, allocations: 8 kB / 358.4 MB, free: 11.47 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches