Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_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.0007904/0.0007904, allocations: 86.45 kB / 16.31 MB, free: 6.449 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.0007937/0.0007938, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.651/1.651, allocations: 223.3 MB / 241.2 MB, free: 5.27 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002809/0.000281, allocations: 10.38 kB / 300.9 MB, free: 5.598 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1394, allocations: 50.42 MB / 351.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock): time 0.001505/0.141, allocations: 0.6475 MB / 352 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003624/0.1414, allocations: 123.6 kB / 352.1 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.1415, allocations: 3.938 kB / 352.1 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.744e-05/0.1415, allocations: 3.984 kB / 352.1 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.1417, allocations: 11.94 kB / 352.1 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002648/0.142, allocations: 35.89 kB / 352.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.514e-05/0.1421, allocations: 39.91 kB / 352.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.1422, allocations: 12.19 kB / 352.2 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.151e-05/0.1422, allocations: 11.92 kB / 352.2 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.755e-05/0.1423, allocations: 15.86 kB / 352.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.218e-05/0.1423, allocations: 4 kB / 352.2 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.1e-05/0.1423, allocations: 0 / 352.2 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.186e-05/0.1424, allocations: 19.92 kB / 352.3 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.387e-05/0.1424, allocations: 33.7 kB / 352.3 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.872e-05/0.1425, allocations: 31.94 kB / 352.3 MB, free: 10.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1425, allocations: 0 / 352.3 MB, free: 10.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.929e-06/0.1425, allocations: 0 / 352.3 MB, free: 10.36 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1426, allocations: 3.938 kB / 352.3 MB, free: 10.36 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.0004611/0.143, allocations: 355.2 kB / 352.7 MB, free: 9.965 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.1431, allocations: 8.031 kB / 352.7 MB, free: 9.957 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.764e-05/0.1431, allocations: 42.48 kB / 352.7 MB, free: 9.906 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.48e-05/0.1432, allocations: 19.77 kB / 352.8 MB, free: 9.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.1434, allocations: 190.9 kB / 352.9 MB, free: 9.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.1434, allocations: 4 kB / 352.9 MB, free: 9.656 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.1434, allocations: 4 kB / 352.9 MB, free: 9.652 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003143/0.1438, allocations: 131.2 kB / 353.1 MB, free: 9.512 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1438, allocations: 0 / 353.1 MB, free: 9.512 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.1438, allocations: 3.953 kB / 353.1 MB, free: 9.508 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.1438, allocations: 8 kB / 353.1 MB, free: 9.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.783e-05/0.1439, allocations: 12 kB / 353.1 MB, free: 9.488 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000213/0.1441, allocations: 169.6 kB / 353.3 MB, free: 9.273 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.1442, allocations: 66.66 kB / 353.3 MB, free: 9.199 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.772e-05/0.1443, allocations: 36.89 kB / 353.4 MB, free: 9.16 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.298e-06/0.1443, allocations: 0 / 353.4 MB, free: 9.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1444, allocations: 38.56 kB / 353.4 MB, free: 9.113 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 8.42e-07/0.1444, allocations: 3.938 kB / 353.4 MB, free: 9.109 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002133/0.1446, allocations: 85.73 kB / 353.5 MB, free: 9.02 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.356e-05/0.1447, allocations: 63.3 kB / 353.6 MB, free: 8.945 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.1448, allocations: 139.9 kB / 353.7 MB, free: 8.801 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.1449, allocations: 29.7 kB / 353.7 MB, free: 8.766 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.1449, allocations: 88.06 kB / 353.8 MB, free: 8.676 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.145, allocations: 12 kB / 353.8 MB, free: 8.664 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-06/0.145, allocations: 0 / 353.8 MB, free: 8.664 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1451, allocations: 318.8 kB / 354.1 MB, free: 8.344 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.934e-05/0.1452, allocations: 4 kB / 354.1 MB, free: 8.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.909e-05/0.1452, allocations: 62.86 kB / 354.2 MB, free: 8.254 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.171e-05/0.1453, allocations: 19.94 kB / 354.2 MB, free: 8.234 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1453, allocations: 0 / 354.2 MB, free: 8.234 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001459/0.1454, allocations: 89.69 kB / 354.3 MB, free: 8.141 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.1455, allocations: 8 kB / 354.3 MB, free: 8.133 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1455, allocations: 0 / 354.3 MB, free: 8.133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.1455, allocations: 4 kB / 354.3 MB, free: 8.129 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-05/0.1456, allocations: 19.92 kB / 354.3 MB, free: 8.109 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1456, allocations: 7.953 kB / 354.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.731e-05/0.1457, allocations: 7.844 kB / 354.3 MB, free: 8.094 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.1457, allocations: 4 kB / 354.3 MB, free: 8.09 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: 0 () * 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 0.0001211/0.1458, allocations: 125.8 kB / 354.5 MB, free: 7.957 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.888e-05/0.1459, allocations: 73.62 kB / 354.5 MB, free: 7.879 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.146, allocations: 16.7 kB / 354.6 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.146, allocations: 0 / 354.6 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.146, allocations: 4 kB / 354.6 MB, free: 7.855 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.146, allocations: 3.953 kB / 354.6 MB, free: 7.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001521/0.1462, allocations: 169.7 kB / 354.7 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.1462, allocations: 0 / 354.7 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.534e-05/0.1462, allocations: 15.98 kB / 354.7 MB, free: 7.621 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1462, allocations: 0 / 354.7 MB, free: 7.621 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.1463, allocations: 0 / 354.7 MB, free: 7.621 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.1463, allocations: 0 / 354.7 MB, free: 7.621 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1463, allocations: 4 kB / 354.8 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.1464, allocations: 113.3 kB / 354.9 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.108e-05/0.1465, allocations: 96.94 kB / 355 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.1466, allocations: 7.938 kB / 355 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.746e-05/0.1466, allocations: 0 / 355 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-06/0.1466, allocations: 0 / 355 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.1466, allocations: 0 / 355 MB, free: 7.367 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.858e-05/0.1467, allocations: 109.9 kB / 355.1 MB, free: 7.262 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1467, allocations: 4.188 kB / 355.1 MB, free: 7.258 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000221/0.1469, allocations: 12 kB / 355.1 MB, free: 7.246 MB / 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: 0 () * 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.0005977/0.1475, allocations: 0.663 MB / 355.8 MB, free: 6.555 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000134/0.1477, allocations: 44.36 kB / 355.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1477, allocations: 0 / 355.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.31e-07/0.1477, allocations: 0 / 355.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.1481, allocations: 46.95 kB / 355.8 MB, free: 6.469 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000839/0.149, allocations: 0.5172 MB / 356.4 MB, free: 5.879 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.1494, allocations: 0.6965 MB / 357.1 MB, free: 5.156 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.295e-05/0.1494, allocations: 7.984 kB / 357.1 MB, free: 5.148 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.38e-05/0.1495, allocations: 15.44 kB / 357.1 MB, free: 5.133 MB / 286.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1495, allocations: 0 / 357.1 MB, free: 5.133 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01382/0.1633, allocations: 1.468 MB / 358.5 MB, free: 3.816 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/0.1636, allocations: 208.8 kB / 358.7 MB, free: 3.566 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.037, allocations: 0 / 358.7 MB, free: 3.566 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat