Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 79.94 kB / 19.18 MB, free: 2.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001781/0.001781, allocations: 164.9 kB / 22.46 MB, free: 5.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06397/0.06397, allocations: 8.607 MB / 267.8 MB, free: 8.582 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 395.6 MB, free: 6.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.568e-05, allocations: 5.656 kB / 395.6 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003303/0.003329, allocations: 1.932 MB / 397.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002464/0.005793, allocations: 1.266 MB / 398.8 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.005919, allocations: 7.938 kB / 398.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.006925, allocations: 335 kB / 399.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006694/0.007594, allocations: 277.6 kB / 399.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000615/0.008209, allocations: 238.8 kB / 399.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004494/0.008658, allocations: 367 kB / 400 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.008789, allocations: 28.55 kB / 400 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002708/0.00906, allocations: 191.5 kB / 400.2 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.009296, allocations: 147.6 kB / 400.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.392e-05/0.00934, allocations: 20 kB / 400.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002376/0.009578, allocations: 103.7 kB / 400.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.009721, allocations: 99.67 kB / 400.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.009835, allocations: 75.77 kB / 400.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005036/0.01034, allocations: 382.7 kB / 401 MB, free: 1.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.01034, allocations: 0 / 401 MB, free: 1.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01035, allocations: 0 / 401 MB, free: 1.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.01035, allocations: 4 kB / 401 MB, free: 1.223 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001038/0.01139, allocations: 0.6087 MB / 401.6 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.01143, allocations: 12.03 kB / 401.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.336e-05/0.01151, allocations: 36.7 kB / 401.7 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004819/0.01199, allocations: 280.1 kB / 401.9 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.01201, allocations: 12.31 kB / 401.9 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.01204, allocations: 12.38 kB / 402 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.01231, allocations: 108.5 kB / 402.1 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.01232, allocations: 3.938 kB / 402.1 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.01234, allocations: 4 kB / 402.1 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.507e-06/0.01235, allocations: 4 kB / 402.1 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.01252, allocations: 55.95 kB / 402.1 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006709/0.01319, allocations: 404 kB / 402.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.01354, allocations: 130.8 kB / 402.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.01367, allocations: 52.7 kB / 402.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.01368, allocations: 4 kB / 402.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002595/0.01394, allocations: 123.3 kB / 402.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.01395, allocations: 4 kB / 402.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005636/0.01451, allocations: 248.4 kB / 403.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.01456, allocations: 59.34 kB / 403.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006148/0.01518, allocations: 493.6 kB / 403.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.0152, allocations: 25.7 kB / 403.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.01536, allocations: 176.4 kB / 403.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.01541, allocations: 35.7 kB / 403.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-05/0.01548, allocations: 45.69 kB / 403.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.01567, allocations: 350.8 kB / 404.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.01579, allocations: 43.97 kB / 404.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.016, allocations: 167.1 kB / 404.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.01627, allocations: 145.9 kB / 404.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.01627, allocations: 0 / 404.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003938/0.01666, allocations: 205.3 kB / 404.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.01668, allocations: 8 kB / 404.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.01668, allocations: 0 / 404.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.0167, allocations: 4 kB / 404.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.01683, allocations: 35.86 kB / 404.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.01684, allocations: 0 / 404.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.01695, allocations: 23.88 kB / 404.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.01697, allocations: 8 kB / 404.9 MB, free: 13.11 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 (flipFlopSR.y1,$PRE.flipFlopSR.y1,flipFlopSR.y2,$PRE.flipFlopSR.y2,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,resetSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001947/0.01717, allocations: 176.4 kB / 405 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.01722, allocations: 39.77 kB / 405.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000454/0.01767, allocations: 208.7 kB / 405.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.01768, allocations: 8.109 kB / 405.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.01769, allocations: 7.938 kB / 405.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.01769, allocations: 0 / 405.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.01797, allocations: 225.1 kB / 405.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.01797, allocations: 0 / 405.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.497e-05/0.01802, allocations: 19.86 kB / 405.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.01803, allocations: 7.984 kB / 405.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.01804, allocations: 8 kB / 405.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.01805, allocations: 0 / 405.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01805, allocations: 0 / 405.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004548/0.0185, allocations: 243.2 kB / 405.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-05/0.01856, allocations: 31.77 kB / 405.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.01861, allocations: 11.98 kB / 405.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.01872, allocations: 8 kB / 405.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.786e-05/0.01878, allocations: 15.91 kB / 405.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.0188, allocations: 8 kB / 405.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000437/0.01924, allocations: 363.1 kB / 406.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01924, allocations: 4 kB / 406.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000322/0.01956, allocations: 59.92 kB / 406.3 MB, free: 11.64 MB / 334.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: 11 ($whenCondition3,$whenCondition2,$whenCondition1,flipFlopSR.y1,flipFlopSR.y2,setSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.y,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (flipFlopSR.y1,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001669/0.02123, allocations: 466.9 kB / 406.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000351/0.02158, allocations: 131.7 kB / 406.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.02158, allocations: 0 / 406.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.02173, allocations: 64.22 kB / 406.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.02215, allocations: 76.64 kB / 407 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009165/0.02307, allocations: 0.5381 MB / 407.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.02324, allocations: 174.1 kB / 407.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.02336, allocations: 50.94 kB / 407.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.726e-05/0.02344, allocations: 28.48 kB / 407.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.02344, allocations: 0 / 407.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Templates: time 0.009907/0.03335, allocations: 4.266 MB / 412 MB, free: 6.059 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.621145222336054] Failed to read output from testmodel.py, exit status != 0: 0.04246997460722923 0.056917838000000005 0.043539004000000006 Calling exit ...