Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.0007997/0.0007998, allocations: 84.7 kB / 16.31 MB, free: 6.453 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.001054/0.001055, allocations: 175.6 kB / 17.2 MB, free: 6.328 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.451/1.451, allocations: 223.2 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002704, allocations: 4.875 kB / 300.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1189, allocations: 50.42 MB / 351.3 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001337/0.1203, allocations: 0.5503 MB / 351.9 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003465/0.1206, allocations: 127.6 kB / 352 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.964e-05/0.1207, allocations: 3.938 kB / 352 MB, free: 3 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.1209, allocations: 0 / 352 MB, free: 3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001738/0.1211, allocations: 11.94 kB / 352 MB, free: 2.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.1213, allocations: 35.91 kB / 352.1 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.1215, allocations: 35.91 kB / 352.1 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1216, allocations: 19.94 kB / 352.1 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.5e-05/0.1216, allocations: 15.94 kB / 352.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.783e-05/0.1217, allocations: 19.86 kB / 352.2 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.1218, allocations: 0 / 352.2 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.248e-05/0.1218, allocations: 0 / 352.2 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.036e-05/0.1218, allocations: 19.92 kB / 352.2 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.593e-05/0.1219, allocations: 33.7 kB / 352.2 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.465e-05/0.122, allocations: 39.86 kB / 352.2 MB, free: 2.766 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.18e-05/0.122, allocations: 4 kB / 352.3 MB, free: 2.762 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.122, allocations: 0 / 352.3 MB, free: 2.762 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.122, allocations: 0 / 352.3 MB, free: 2.762 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.000677/0.1227, allocations: 367.3 kB / 352.6 MB, free: 2.355 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.1228, allocations: 8.031 kB / 352.6 MB, free: 2.348 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.949e-05/0.1228, allocations: 38.56 kB / 352.7 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.1229, allocations: 7.906 kB / 352.7 MB, free: 2.293 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.1231, allocations: 190.9 kB / 352.8 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.744e-06/0.1232, allocations: 0 / 352.8 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.836e-05/0.1232, allocations: 7.984 kB / 352.9 MB, free: 2.059 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003622/0.1236, allocations: 151.1 kB / 353 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.1236, allocations: 0 / 353 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.1236, allocations: 0 / 353 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1236, allocations: 0 / 353 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.076e-05/0.1237, allocations: 23.98 kB / 353 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002115/0.1239, allocations: 169.6 kB / 353.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.1241, allocations: 74.66 kB / 353.3 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.1242, allocations: 53.02 kB / 353.3 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.1242, allocations: 0 / 353.3 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.1243, allocations: 30.56 kB / 353.3 MB, free: 1.484 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.1243, allocations: 0 / 353.3 MB, free: 1.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002686/0.1245, allocations: 105.7 kB / 353.5 MB, free: 1.375 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.1247, allocations: 63.38 kB / 353.5 MB, free: 1.301 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.1248, allocations: 146 kB / 353.7 MB, free: 1.145 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.1249, allocations: 25.7 kB / 353.7 MB, free: 1.113 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.267e-05/0.125, allocations: 92.08 kB / 353.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.125, allocations: 0 / 353.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-06/0.125, allocations: 7.938 kB / 353.8 MB, free: 1.012 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1252, allocations: 318.8 kB / 354.1 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.126e-05/0.1252, allocations: 8 kB / 354.1 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.947e-05/0.1253, allocations: 58.86 kB / 354.2 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.136e-05/0.1253, allocations: 23.94 kB / 354.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1253, allocations: 0 / 354.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001476/0.1255, allocations: 97.45 kB / 354.3 MB, free: 488 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1255, allocations: 10.44 kB / 354.3 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.026e-06/0.1255, allocations: 4 kB / 354.3 MB, free: 476 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.1255, allocations: 3.953 kB / 354.3 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.495e-05/0.1256, allocations: 16 kB / 354.3 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.1257, allocations: 3.984 kB / 354.3 MB, free: 452 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.054e-05/0.1257, allocations: 8.188 kB / 354.3 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.1257, allocations: 8 kB / 354.3 MB, free: 436 kB / 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 (sum.y,sum.u[2],sum.u[1],const.y,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 0.0001346/0.1259, allocations: 129.2 kB / 354.5 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.126, allocations: 77.58 kB / 354.5 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.608e-05/0.126, allocations: 12.72 kB / 354.5 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.126, allocations: 0 / 354.5 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.126, allocations: 3.953 kB / 354.5 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.1261, allocations: 4 kB / 354.5 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.1263, allocations: 173.5 kB / 354.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1263, allocations: 4 kB / 354.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.1263, allocations: 16 kB / 354.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.1264, allocations: 4 kB / 354.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.1264, allocations: 3.984 kB / 354.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.1264, allocations: 7.938 kB / 354.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1264, allocations: 0 / 354.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001706/0.1266, allocations: 113 kB / 354.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.101e-05/0.1267, allocations: 93 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.1267, allocations: 7.984 kB / 355 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.275e-05/0.1267, allocations: 4 kB / 355 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.907e-06/0.1267, allocations: 0 / 355 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.1267, allocations: 3.938 kB / 355 MB, free: 15.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.833e-05/0.1268, allocations: 103.3 kB / 355.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1268, allocations: 192 / 355.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002118/0.1271, allocations: 15.95 kB / 355.1 MB, free: 15.56 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,const.y,sum.u[1],sum.u[2],sum.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.0005774/0.1276, allocations: 0.6748 MB / 355.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001282/0.1278, allocations: 51.89 kB / 355.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1278, allocations: 0 / 355.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/0.1278, allocations: 0 / 355.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.1281, allocations: 52.52 kB / 355.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008389/0.129, allocations: 0.5444 MB / 356.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.1295, allocations: 0.7014 MB / 357.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.087e-05/0.1296, allocations: 4.672 kB / 357.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.714e-05/0.1296, allocations: 27.42 kB / 357.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1296, allocations: 0 / 357.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.1472, allocations: 1.551 MB / 358.7 MB, free: 12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/0.1475, allocations: 196.5 kB / 358.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.063, allocations: 3.938 kB / 358.9 MB, free: 11.76 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat