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.0008549/0.0008547, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005882/0.005883, allocations: 170.2 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.642/1.642, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05417/0.05417, allocations: 10.74 MB / 281.5 MB, free: 10.45 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.000519/0.0005189, allocations: 16.22 kB / 342.2 MB, free: 23.47 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1127, allocations: 50.01 MB / 392.2 MB, free: 5.398 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002688/0.1154, allocations: 1.656 MB / 393.9 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.1174, allocations: 1.077 MB / 395 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.1177, allocations: 7.938 kB / 395 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009329/0.1186, allocations: 307.4 kB / 395.3 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005712/0.1192, allocations: 187.5 kB / 395.5 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008576/0.1201, allocations: 251.6 kB / 395.7 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005364/0.1206, allocations: 335.1 kB / 396 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.1208, allocations: 44.36 kB / 396.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.121, allocations: 127.5 kB / 396.2 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.1212, allocations: 135.4 kB / 396.3 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.1212, allocations: 8 kB / 396.4 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.1215, allocations: 75.88 kB / 396.4 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1216, allocations: 75.75 kB / 396.5 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.1218, allocations: 144.9 kB / 396.6 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.1223, allocations: 347 kB / 397 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.1223, allocations: 0 / 397 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1223, allocations: 0 / 397 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.1223, allocations: 0 / 397 MB, free: 0.6328 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.001193/0.1235, allocations: 0.6219 MB / 397.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.1236, allocations: 12.02 kB / 397.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.849e-05/0.1237, allocations: 36.56 kB / 397.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004222/0.1241, allocations: 338.3 kB / 398 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.1241, allocations: 4.375 kB / 398 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/0.1242, allocations: 20.06 kB / 398 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.1244, allocations: 139.2 kB / 398.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1245, allocations: 4 kB / 398.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.1245, allocations: 4 kB / 398.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.1245, allocations: 7.938 kB / 398.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.1246, allocations: 51.97 kB / 398.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006641/0.1253, allocations: 468.5 kB / 398.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003284/0.1256, allocations: 138.8 kB / 398.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.1258, allocations: 52.83 kB / 398.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.1258, allocations: 4 kB / 398.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.126, allocations: 119.2 kB / 399 MB, free: 14.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.1261, allocations: 0 / 399 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004925/0.1266, allocations: 229.3 kB / 399.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.979e-05/0.1266, allocations: 110.8 kB / 399.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005275/0.1272, allocations: 477.5 kB / 399.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1272, allocations: 33.7 kB / 399.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1273, allocations: 164.3 kB / 400 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.484e-05/0.1274, allocations: 39.55 kB / 400 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.1275, allocations: 21.72 kB / 400 MB, free: 13.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1276, allocations: 346.8 kB / 400.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.1277, allocations: 43.97 kB / 400.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.1279, allocations: 133.3 kB / 400.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.1282, allocations: 133.9 kB / 400.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1282, allocations: 0 / 400.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003387/0.1286, allocations: 193.1 kB / 400.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1286, allocations: 11.94 kB / 400.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1286, allocations: 160 / 400.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1286, allocations: 8 kB / 400.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.1288, allocations: 19.98 kB / 400.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.1288, allocations: 7.938 kB / 400.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.1289, allocations: 27.83 kB / 400.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.1289, allocations: 4 kB / 400.9 MB, free: 12.36 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 (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.0001825/0.1291, allocations: 176.2 kB / 401.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.261e-05/0.1292, allocations: 35.56 kB / 401.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.859e-05/0.1292, allocations: 43.02 kB / 401.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.1292, allocations: 0 / 401.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.1292, allocations: 0 / 401.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.1293, allocations: 0 / 401.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002913/0.1296, allocations: 305.3 kB / 401.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1296, allocations: 0 / 401.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.302e-05/0.1296, allocations: 11.98 kB / 401.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.1296, allocations: 7.875 kB / 401.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.1296, allocations: 3.938 kB / 401.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.1297, allocations: 4 kB / 401.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1297, allocations: 4 kB / 401.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003511/0.13, allocations: 216.6 kB / 401.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.948e-05/0.1301, allocations: 124.6 kB / 401.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.71e-05/0.1302, allocations: 0 / 401.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.874e-05/0.1302, allocations: 15.98 kB / 401.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.504e-05/0.1303, allocations: 15.92 kB / 401.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.1303, allocations: 8 kB / 401.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000375/0.1307, allocations: 347.1 kB / 402.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1307, allocations: 0 / 402.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.131, allocations: 56 kB / 402.3 MB, free: 10.92 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 (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.0009896/0.132, allocations: 429.9 kB / 402.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000296/0.1323, allocations: 132 kB / 402.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.1323, allocations: 4 kB / 402.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.1325, allocations: 59.92 kB / 402.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.1329, allocations: 66.03 kB / 403 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008456/0.1338, allocations: 0.5776 MB / 403.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.1341, allocations: 0.7794 MB / 404.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.1343, allocations: 46.5 kB / 404.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.034e-05/0.1343, allocations: 27.42 kB / 404.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1344, allocations: 0 / 404.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of Templates: time 0.008657/0.143, allocations: 3.815 MB / 408.2 MB, free: 5.055 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: