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.001277/0.001277, allocations: 103 kB / 16.51 MB, free: 6.645 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.001264/0.001265, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.534/1.534, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 54.41 kB / 300.1 MB, free: 6.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1284, allocations: 49.44 MB / 349.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002909/0.1314, allocations: 0.9178 MB / 350.4 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003881/0.1318, allocations: 119.6 kB / 350.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.464e-05/0.1319, allocations: 0 / 350.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.138e-05/0.132, allocations: 7.922 kB / 350.6 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.1321, allocations: 8 kB / 350.6 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.1324, allocations: 31.91 kB / 350.6 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.072e-05/0.1325, allocations: 35.92 kB / 350.6 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.1326, allocations: 19.98 kB / 350.6 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.947e-05/0.1326, allocations: 15.94 kB / 350.7 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.66e-05/0.1327, allocations: 19.86 kB / 350.7 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.1327, allocations: 0 / 350.7 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.437e-05/0.1327, allocations: 4 kB / 350.7 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.784e-05/0.1328, allocations: 15.92 kB / 350.7 MB, free: 3.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.748e-05/0.1329, allocations: 31.78 kB / 350.7 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001083/0.133, allocations: 39.83 kB / 350.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.133, allocations: 0 / 350.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.133, allocations: 0 / 350.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.133, allocations: 0 / 350.8 MB, free: 3.457 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.0005349/0.1335, allocations: 379.5 kB / 351.1 MB, free: 3.035 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/0.1336, allocations: 8.031 kB / 351.2 MB, free: 3.027 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.535e-05/0.1337, allocations: 30.75 kB / 351.2 MB, free: 2.988 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.1337, allocations: 12.78 kB / 351.2 MB, free: 2.977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002869/0.134, allocations: 196.1 kB / 351.4 MB, free: 2.746 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.134, allocations: 8.312 kB / 351.4 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.1341, allocations: 4.375 kB / 351.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003632/0.1344, allocations: 151.6 kB / 351.5 MB, free: 2.574 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1344, allocations: 3.938 kB / 351.6 MB, free: 2.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.1345, allocations: 0 / 351.6 MB, free: 2.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1345, allocations: 0 / 351.6 MB, free: 2.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.014e-05/0.1346, allocations: 19.98 kB / 351.6 MB, free: 2.551 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002238/0.1348, allocations: 169.6 kB / 351.7 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001869/0.135, allocations: 62.72 kB / 351.8 MB, free: 2.266 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.24e-05/0.1351, allocations: 44.83 kB / 351.8 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.1351, allocations: 0 / 351.8 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.1351, allocations: 34.56 kB / 351.9 MB, free: 2.176 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.1351, allocations: 0 / 351.9 MB, free: 2.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.000268/0.1354, allocations: 89.52 kB / 352 MB, free: 2.082 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/0.1355, allocations: 59.41 kB / 352 MB, free: 2.012 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.1356, allocations: 137.8 kB / 352.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.1357, allocations: 29.64 kB / 352.2 MB, free: 1.832 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.1357, allocations: 84.14 kB / 352.3 MB, free: 1.746 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.1358, allocations: 4 kB / 352.3 MB, free: 1.742 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-05/0.1358, allocations: 37.55 kB / 352.3 MB, free: 1.699 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.136, allocations: 310.8 kB / 352.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.944e-05/0.136, allocations: 11.98 kB / 352.6 MB, free: 1.375 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.509e-05/0.1361, allocations: 58.88 kB / 352.7 MB, free: 1.293 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.597e-05/0.1362, allocations: 74.73 kB / 352.8 MB, free: 1.195 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1362, allocations: 0 / 352.8 MB, free: 1.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000155/0.1364, allocations: 85.5 kB / 352.8 MB, free: 1.105 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.1364, allocations: 12.19 kB / 352.8 MB, free: 1.094 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1364, allocations: 4 kB / 352.9 MB, free: 1.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.1365, allocations: 4 kB / 352.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.294e-05/0.1365, allocations: 4 kB / 352.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.1365, allocations: 3.984 kB / 352.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.606e-05/0.1366, allocations: 11.91 kB / 352.9 MB, free: 1.066 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.1366, allocations: 4 kB / 352.9 MB, free: 1.062 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.0001167/0.1367, allocations: 129 kB / 353 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.1368, allocations: 73.53 kB / 353.1 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.873e-05/0.1369, allocations: 16.38 kB / 353.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1369, allocations: 192 / 353.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1369, allocations: 0 / 353.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1369, allocations: 3.938 kB / 353.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.137, allocations: 169.6 kB / 353.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1371, allocations: 0 / 353.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.219e-05/0.1371, allocations: 4 kB / 353.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.1371, allocations: 3.938 kB / 353.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.1371, allocations: 0 / 353.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1371, allocations: 3.938 kB / 353.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.1371, allocations: 0 / 353.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.1373, allocations: 101.4 kB / 353.4 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.548e-05/0.1374, allocations: 96.92 kB / 353.5 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.1374, allocations: 11.94 kB / 353.5 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.817e-05/0.1374, allocations: 0 / 353.5 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-06/0.1374, allocations: 0 / 353.5 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.1374, allocations: 0 / 353.5 MB, free: 368 kB / 286.1 MB Notification: Performance of sorting global known variables: time 7.227e-05/0.1375, allocations: 107.2 kB / 353.6 MB, free: 260 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1375, allocations: 0 / 353.6 MB, free: 260 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.000241/0.1378, allocations: 12 kB / 353.6 MB, free: 248 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.0005932/0.1384, allocations: 0.667 MB / 354.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001552/0.1385, allocations: 40.42 kB / 354.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1386, allocations: 4.062 kB / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.052e-06/0.1386, allocations: 4 kB / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004621/0.139, allocations: 49.27 kB / 354.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.1404, allocations: 1.334 MB / 355.7 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.1407, allocations: 0.6926 MB / 356.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.241e-05/0.1407, allocations: 4 kB / 356.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.374e-05/0.1408, allocations: 15.42 kB / 356.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1408, allocations: 0 / 356.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01226/0.153, allocations: 1.528 MB / 357.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.1533, allocations: 220.3 kB / 358.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/2.18, allocations: 3.75 kB / 358.2 MB, free: 11.59 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