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/Complex 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) 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) 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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004583/0.004583, allocations: 177.5 kB / 7.452 MB, free: 2.523 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06462/0.06462, allocations: 10.59 MB / 18.46 MB, free: 2.168 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.057/2.057, allocations: 205.2 MB / 226.5 MB, free: 0.5469 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.001043/0.001043, allocations: 95.53 kB / 276.9 MB, free: 15.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.152/0.1531, allocations: 56.12 MB / 333 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.4673, allocations: 49.99 MB / 383 MB, free: 39.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1065/0.5738, allocations: 80.02 MB / 463 MB, free: 7.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.5742, allocations: 87.94 kB / 463.1 MB, free: 7.578 MB / 346.7 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.02704/0.6012, allocations: 9.192 MB / 472.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.6013, allocations: 8 kB / 472.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.6015, allocations: 35.53 kB / 472.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008421/0.6024, allocations: 347.8 kB / 472.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.6024, allocations: 7.922 kB / 472.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.849e-05/0.6024, allocations: 8 kB / 472.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001477/0.6026, allocations: 51.98 kB / 472.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002213/0.6028, allocations: 129.3 kB / 472.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.6028, allocations: 0 / 472.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.6029, allocations: 3.984 kB / 472.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.6029, allocations: 0 / 472.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.6037, allocations: 473.1 kB / 473.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.6039, allocations: 118.8 kB / 473.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.689e-05/0.604, allocations: 44.86 kB / 473.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.604, allocations: 4 kB / 473.5 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000161/0.6042, allocations: 103.4 kB / 473.6 MB, free: 12.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.6042, allocations: 0 / 473.6 MB, free: 12.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004066/0.6046, allocations: 157.2 kB / 473.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.6047, allocations: 106.8 kB / 473.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005442/0.6052, allocations: 417.9 kB / 474.3 MB, free: 12.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.6053, allocations: 33.7 kB / 474.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.223e-05/0.6054, allocations: 116.3 kB / 474.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.318e-05/0.6054, allocations: 27.61 kB / 474.5 MB, free: 12.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-06/0.6054, allocations: 0 / 474.5 MB, free: 12.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.6056, allocations: 350.8 kB / 474.8 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.696e-05/0.6057, allocations: 36.38 kB / 474.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.6058, allocations: 122 kB / 475 MB, free: 11.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.6059, allocations: 43.92 kB / 475 MB, free: 11.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.606, allocations: 4 kB / 475 MB, free: 11.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000302/0.6063, allocations: 181.9 kB / 475.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.6063, allocations: 4 kB / 475.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.6063, allocations: 3.938 kB / 475.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.6063, allocations: 4 kB / 475.2 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.6065, allocations: 23.98 kB / 475.2 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.6065, allocations: 3.938 kB / 475.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.6066, allocations: 28.11 kB / 475.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.6067, allocations: 13.41 kB / 475.3 MB, free: 11.18 MB / 362.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: 17 ($PRE.flipFlopSR.y1,flipFlopSR.y1,$PRE.flipFlopSR.y2,flipFlopSR.y2,$whenCondition3,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition1,flipFlopSR.u2,resetSIGNAL.combiTimeTable.nextTimeEvent,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled,flipFlopSR.u1,setSIGNAL.combiTimeTable.nextTimeEvent,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete 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.0001031/0.6068, allocations: 111.6 kB / 475.4 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-05/0.6068, allocations: 43.55 kB / 475.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003844/0.6072, allocations: 179 kB / 475.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.6072, allocations: 3.906 kB / 475.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.6072, allocations: 0 / 475.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.6073, allocations: 4 kB / 475.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003293/0.6076, allocations: 290 kB / 475.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.6076, allocations: 0 / 475.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.028e-05/0.6077, allocations: 12 kB / 475.9 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.6077, allocations: 3.906 kB / 475.9 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.6077, allocations: 4 kB / 475.9 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.6077, allocations: 0 / 475.9 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6077, allocations: 0 / 475.9 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003433/0.6081, allocations: 196.5 kB / 476.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004605/0.6085, allocations: 0.5825 MB / 476.7 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.6087, allocations: 128.7 kB / 476.8 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.247e-05/0.6087, allocations: 7.984 kB / 476.8 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.6089, allocations: 8 kB / 476.8 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.952e-05/0.6089, allocations: 11.89 kB / 476.8 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.609, allocations: 15.98 kB / 476.8 MB, free: 9.484 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0004047/0.6094, allocations: 324.6 kB / 477.2 MB, free: 9.168 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009325/0.6103, allocations: 67.98 kB / 477.2 MB, free: 9.102 MB / 362.7 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.u1,flipFlopSR.y1,flipFlopSR.u2,flipFlopSR.y2,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,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) * 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 (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.0007577/0.6111, allocations: 340.8 kB / 477.6 MB, free: 8.805 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002593/0.6113, allocations: 128.1 kB / 477.7 MB, free: 8.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.6114, allocations: 4.062 kB / 477.7 MB, free: 8.676 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.6115, allocations: 70.48 kB / 477.8 MB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.6119, allocations: 64.48 kB / 477.8 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009316/0.6129, allocations: 408.5 kB / 478.2 MB, free: 8.117 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005788/0.6134, allocations: 0.8173 MB / 479 MB, free: 7.277 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.6135, allocations: 0 / 479 MB, free: 7.277 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)