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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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: translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009936/0.0009936, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.221/1.221, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05181/0.05181, allocations: 10.73 MB / 281.1 MB, free: 10.57 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000458/0.000458, allocations: 15.19 kB / 341.6 MB, free: 23.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07841/0.07888, allocations: 50.02 MB / 391.6 MB, free: 5.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002278/0.08123, allocations: 1.602 MB / 393.2 MB, free: 4.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001751/0.08301, allocations: 0.9994 MB / 394.2 MB, free: 3.176 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.08316, allocations: 7.875 kB / 394.2 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006925/0.08386, allocations: 271.4 kB / 394.5 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003643/0.08423, allocations: 183.5 kB / 394.7 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005867/0.08483, allocations: 231.4 kB / 394.9 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.08511, allocations: 207.6 kB / 395.1 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.08522, allocations: 36.38 kB / 395.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.08539, allocations: 135.5 kB / 395.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.08554, allocations: 115.6 kB / 395.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.044e-05/0.08558, allocations: 4 kB / 395.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.08573, allocations: 63.94 kB / 395.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.176e-05/0.08583, allocations: 83.73 kB / 395.5 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.734e-05/0.0859, allocations: 65.58 kB / 395.6 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.0862, allocations: 275.5 kB / 395.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.08621, allocations: 0 / 395.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08621, allocations: 0 / 395.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.08622, allocations: 0 / 395.8 MB, free: 1.523 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008311/0.08706, allocations: 0.6298 MB / 396.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.08711, allocations: 12.02 kB / 396.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.459e-05/0.08718, allocations: 31.62 kB / 396.5 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004284/0.08762, allocations: 321.3 kB / 396.8 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.08765, allocations: 4 kB / 396.8 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.08768, allocations: 12 kB / 396.8 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.08795, allocations: 134.8 kB / 397 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.08797, allocations: 0 / 397 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.088, allocations: 7.953 kB / 397 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.08801, allocations: 0 / 397 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.08816, allocations: 63.89 kB / 397 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006699/0.08884, allocations: 472.5 kB / 397.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002741/0.08913, allocations: 130.7 kB / 397.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.08916, allocations: 4 kB / 397.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.08938, allocations: 115.5 kB / 397.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.866e-06/0.0894, allocations: 7.938 kB / 397.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004639/0.08987, allocations: 233.3 kB / 398 MB, free: 15.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.08993, allocations: 106.8 kB / 398.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004582/0.0904, allocations: 465.7 kB / 398.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.09043, allocations: 29.7 kB / 398.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.09055, allocations: 176.3 kB / 398.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.09059, allocations: 43.44 kB / 398.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.09061, allocations: 0 / 398.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.09074, allocations: 346.8 kB / 399.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.567e-05/0.09084, allocations: 40.34 kB / 399.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.09099, allocations: 126.1 kB / 399.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.09111, allocations: 59.92 kB / 399.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.09112, allocations: 3.953 kB / 399.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003126/0.09144, allocations: 193.1 kB / 399.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.09147, allocations: 8 kB / 399.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.09148, allocations: 0 / 399.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.09149, allocations: 4 kB / 399.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.09161, allocations: 19.98 kB / 399.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.09162, allocations: 7.938 kB / 399.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.09174, allocations: 31.98 kB / 399.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.09176, allocations: 4 kB / 399.6 MB, free: 13.46 MB / 302.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 ($PRE.flipFlopSR.y1,flipFlopSR.y1,$PRE.flipFlopSR.y2,flipFlopSR.y2,$whenCondition3,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition1,resetSIGNAL.y,resetSIGNAL.combiTimeTable.nextTimeEvent,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEvent,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001552/0.09192, allocations: 172.1 kB / 399.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.09197, allocations: 35.58 kB / 399.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.629e-05/0.09204, allocations: 38.98 kB / 399.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.09205, allocations: 0 / 399.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.09207, allocations: 0 / 399.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.09208, allocations: 3.984 kB / 399.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.09234, allocations: 293.5 kB / 400.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.09235, allocations: 4 kB / 400.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.558e-05/0.09239, allocations: 16.02 kB / 400.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.0924, allocations: 8.031 kB / 400.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.09242, allocations: 11.98 kB / 400.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.09243, allocations: 0 / 400.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.09243, allocations: 3.938 kB / 400.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003278/0.09277, allocations: 220.3 kB / 400.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.319e-05/0.09286, allocations: 120.7 kB / 400.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.09292, allocations: 7.953 kB / 400.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.915e-05/0.09301, allocations: 11.98 kB / 400.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.09306, allocations: 11.98 kB / 400.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.09309, allocations: 8 kB / 400.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003256/0.09342, allocations: 343.1 kB / 400.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.342e-06/0.09343, allocations: 4 kB / 400.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.09372, allocations: 55.92 kB / 401 MB, free: 12.02 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: 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,resetSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.000859/0.09458, allocations: 431.8 kB / 401.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002759/0.09487, allocations: 119.8 kB / 401.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.09488, allocations: 0 / 401.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.09501, allocations: 67.89 kB / 401.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.09535, allocations: 66.34 kB / 401.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007241/0.09609, allocations: 0.5386 MB / 402.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.09641, allocations: 0.7835 MB / 403 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.09654, allocations: 46.27 kB / 403 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.697e-05/0.0966, allocations: 31.42 kB / 403 MB, free: 10 MB / 302.1 MB Notification: Performance of SimCode: time 2.315e-06/0.09661, allocations: 4 kB / 403 MB, free: 9.996 MB / 302.1 MB Notification: Performance of Templates: time 0.006811/0.1034, allocations: 3.712 MB / 406.7 MB, free: 6.281 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: