Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.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.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008046/0.0008049, allocations: 99.17 kB / 17 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009289/0.0009292, allocations: 198.2 kB / 17.91 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003184, allocations: 8 kB / 306.8 MB, free: 1.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1242, allocations: 51.49 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.001466/0.1258, allocations: 0.5629 MB / 358.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003355/0.1261, allocations: 123.6 kB / 359 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.634e-05/0.1262, allocations: 4 kB / 359 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.235e-05/0.1263, allocations: 3.938 kB / 359 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.1264, allocations: 0 / 359 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000242/0.1266, allocations: 35.89 kB / 359 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.897e-05/0.1268, allocations: 35.86 kB / 359.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.1269, allocations: 27.95 kB / 359.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.876e-05/0.1269, allocations: 7.938 kB / 359.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.372e-05/0.127, allocations: 23.86 kB / 359.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.127, allocations: 0 / 359.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.168e-05/0.127, allocations: 0 / 359.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.817e-05/0.127, allocations: 7.984 kB / 359.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.929e-05/0.1271, allocations: 37.64 kB / 359.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.352e-05/0.1272, allocations: 35.92 kB / 359.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1272, allocations: 0 / 359.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1272, allocations: 0 / 359.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.1272, allocations: 4 kB / 359.2 MB, free: 13.06 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000431/0.1276, allocations: 359.4 kB / 359.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.1277, allocations: 8.031 kB / 359.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.053e-05/0.1277, allocations: 34.56 kB / 359.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.842e-05/0.1278, allocations: 7.906 kB / 359.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.128, allocations: 190.8 kB / 359.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.128, allocations: 11.95 kB / 359.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.128, allocations: 0 / 359.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.1283, allocations: 135.2 kB / 359.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1284, allocations: 0 / 359.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.1284, allocations: 0 / 359.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1284, allocations: 0 / 359.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.644e-05/0.1284, allocations: 23.92 kB / 360 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001788/0.1286, allocations: 169.6 kB / 360.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.1288, allocations: 70.66 kB / 360.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.392e-05/0.1288, allocations: 44.88 kB / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.108e-05/0.1289, allocations: 0 / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.1289, allocations: 34.5 kB / 360.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 8.41e-07/0.1289, allocations: 0 / 360.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002127/0.1291, allocations: 81.59 kB / 360.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.1292, allocations: 67.39 kB / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.1293, allocations: 136.3 kB / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.1293, allocations: 25.7 kB / 360.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.213e-05/0.1294, allocations: 92.08 kB / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.156e-05/0.1294, allocations: 0 / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-06/0.1294, allocations: 0 / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1296, allocations: 322.8 kB / 361 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.111e-05/0.1296, allocations: 7.938 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.503e-05/0.1297, allocations: 62.86 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.877e-05/0.1297, allocations: 16 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1297, allocations: 7.938 kB / 361.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000133/0.1299, allocations: 93.36 kB / 361.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.1299, allocations: 4 kB / 361.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1299, allocations: 7.984 kB / 361.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1299, allocations: 0 / 361.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.153e-05/0.13, allocations: 7.938 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.13, allocations: 8.25 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.214e-05/0.13, allocations: 0 / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.13, allocations: 4 kB / 361.2 MB, free: 10.81 MB / 302.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,unitDelay1.u,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.662e-05/0.1301, allocations: 125.8 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.853e-05/0.1302, allocations: 73.48 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.335e-05/0.1303, allocations: 20.36 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1303, allocations: 0 / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.1303, allocations: 4 kB / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1303, allocations: 0 / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.1304, allocations: 169.7 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1304, allocations: 4 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.074e-05/0.1305, allocations: 0 / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1305, allocations: 7.938 kB / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.1305, allocations: 0 / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.1305, allocations: 0 / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.1305, allocations: 4 kB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.1306, allocations: 92.97 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.612e-05/0.1307, allocations: 104.9 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.1308, allocations: 7.953 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.666e-05/0.1308, allocations: 4 kB / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.497e-06/0.1308, allocations: 0 / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-06/0.1308, allocations: 0 / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.842e-05/0.1309, allocations: 110.1 kB / 361.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1309, allocations: 192 / 361.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002067/0.1311, allocations: 8 kB / 361.9 MB, free: 9.988 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005086/0.1316, allocations: 0.6514 MB / 362.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.1317, allocations: 47.86 kB / 362.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1317, allocations: 0 / 362.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.1318, allocations: 0 / 362.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.1321, allocations: 43.28 kB / 362.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008378/0.1329, allocations: 0.5077 MB / 363.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.1333, allocations: 0.6937 MB / 363.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.73e-05/0.1333, allocations: 7.938 kB / 363.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.1333, allocations: 19.44 kB / 363.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1333, allocations: 0 / 363.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/0.1456, allocations: 1.447 MB / 365.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.1459, allocations: 203.4 kB / 365.5 MB, free: 6.363 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.016, allocations: 0 / 365.5 MB, free: 6.363 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat