Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008917/0.0008918, allocations: 179.8 kB / 16.77 MB, free: 4.898 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.142/1.142, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006954/0.0006954, allocations: 82.44 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.0581/0.0581, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003535, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06107/0.06143, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger): time 0.001478/0.06294, allocations: 1.56 MB / 444.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.06397, allocations: 0.9565 MB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.245e-05/0.06407, allocations: 4 kB / 445 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002313/0.06431, allocations: 59.78 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.06449, allocations: 79.72 kB / 445.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.06503, allocations: 195.6 kB / 445.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001612/0.0652, allocations: 151.5 kB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.554e-05/0.0653, allocations: 41.53 kB / 445.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.239e-05/0.0654, allocations: 59.7 kB / 445.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.183e-05/0.0655, allocations: 75.67 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.06553, allocations: 4 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.06565, allocations: 51.91 kB / 445.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.869e-05/0.06572, allocations: 43.89 kB / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.411e-05/0.06579, allocations: 101.2 kB / 445.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.06596, allocations: 175.9 kB / 446 MB, free: 12.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.06598, allocations: 0 / 446 MB, free: 12.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.06598, allocations: 0 / 446 MB, free: 12.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.06599, allocations: 0 / 446 MB, free: 12.99 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005169/0.06652, allocations: 0.5078 MB / 446.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.06655, allocations: 12.03 kB / 446.6 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.391e-05/0.06659, allocations: 38.73 kB / 446.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.314e-05/0.06664, allocations: 20.75 kB / 446.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002358/0.06688, allocations: 290.6 kB / 446.9 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.06692, allocations: 8.375 kB / 446.9 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.11e-05/0.06695, allocations: 7.938 kB / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002858/0.06724, allocations: 178.6 kB / 447.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.06726, allocations: 4 kB / 447.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.06728, allocations: 3.984 kB / 447.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.06729, allocations: 4 kB / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.06741, allocations: 51.91 kB / 447.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004417/0.06786, allocations: 401.5 kB / 447.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.06808, allocations: 129.3 kB / 447.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.646e-05/0.06816, allocations: 45.7 kB / 447.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.0682, allocations: 0 / 447.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.06838, allocations: 99.3 kB / 447.8 MB, free: 10.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.714e-06/0.06839, allocations: 0 / 447.8 MB, free: 10.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000338/0.06873, allocations: 181.3 kB / 448 MB, free: 10.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.06879, allocations: 144.4 kB / 448.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/0.06902, allocations: 325 kB / 448.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.06904, allocations: 25.7 kB / 448.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.389e-05/0.0691, allocations: 140 kB / 448.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.06913, allocations: 27.64 kB / 448.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.06914, allocations: 4 kB / 448.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.0692, allocations: 334.8 kB / 449 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.521e-05/0.06928, allocations: 35.98 kB / 449 MB, free: 9.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.496e-05/0.06938, allocations: 108.9 kB / 449.1 MB, free: 9.598 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.06954, allocations: 125.9 kB / 449.2 MB, free: 9.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.06955, allocations: 4 kB / 449.2 MB, free: 9.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000235/0.06979, allocations: 165.3 kB / 449.4 MB, free: 9.281 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.06981, allocations: 7.938 kB / 449.4 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.06982, allocations: 4 kB / 449.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.06984, allocations: 0 / 449.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.06994, allocations: 31.92 kB / 449.4 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.06996, allocations: 3.938 kB / 449.4 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.927e-05/0.07004, allocations: 12.16 kB / 449.4 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.07006, allocations: 8 kB / 449.5 MB, free: 9.215 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.triggeredBooleanSampler.y,triggeredBooleanSampler.y,$whenCondition2,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToTrigger.y2,$CLKPRE.ClockedSignalToTrigger.y2,$whenCondition1,ClockedSignalToTrigger.y,$PRE.ClockedSignalToTrigger.y3,ClockedSignalToTrigger.y3,ClockedSignalToTrigger.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 1 (ClockedSignalToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001041/0.07017, allocations: 172.6 kB / 449.6 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/0.07024, allocations: 65.41 kB / 449.7 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.201e-05/0.07029, allocations: 21.72 kB / 449.7 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.0703, allocations: 4 kB / 449.7 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.07031, allocations: 7.922 kB / 449.7 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.07031, allocations: 0 / 449.7 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003951/0.07071, allocations: 470.3 kB / 450.2 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.07073, allocations: 0 / 450.2 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.091e-05/0.07079, allocations: 15.92 kB / 450.2 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.0708, allocations: 8.219 kB / 450.2 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.07082, allocations: 4 kB / 450.2 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.07082, allocations: 0 / 450.2 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.07083, allocations: 4 kB / 450.2 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.07107, allocations: 256.3 kB / 450.5 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.118e-05/0.07112, allocations: 108.6 kB / 450.6 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.07116, allocations: 11.98 kB / 450.6 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.299e-05/0.07125, allocations: 0 / 450.6 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.07131, allocations: 15.98 kB / 450.6 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.07133, allocations: 4 kB / 450.6 MB, free: 7.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000154/0.07149, allocations: 236.4 kB / 450.8 MB, free: 7.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07149, allocations: 0 / 450.8 MB, free: 7.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002759/0.07177, allocations: 39.98 kB / 450.9 MB, free: 7.691 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (sample1.y,ClockedSignalToTrigger.u,ClockedSignalToTrigger.y2,ClockedSignalToTrigger.y,$whenCondition2,$whenCondition1,ClockedSignalToTrigger.y3,triggeredBooleanSampler.y,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 3 (integerTable.combiTimeTable.nextTimeEvent,ClockedSignalToTrigger.y3,integerTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 1 (ClockedSignalToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001121/0.0729, allocations: 1.166 MB / 452 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002069/0.07312, allocations: 100.1 kB / 452.1 MB, free: 6.398 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.07313, allocations: 0 / 452.1 MB, free: 6.398 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.546e-05/0.07321, allocations: 39.92 kB / 452.2 MB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.0736, allocations: 56.44 kB / 452.2 MB, free: 6.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.07505, allocations: 1.319 MB / 453.5 MB, free: 4.906 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.0752, allocations: 0.7479 MB / 454.3 MB, free: 4.133 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.639e-05/0.07529, allocations: 63.59 kB / 454.4 MB, free: 4.07 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.0753, allocations: 0 / 454.4 MB, free: 4.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.813/2.888, allocations: 3.7 MB / 458.1 MB, free: 372 kB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe 2>&1)