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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00466/0.004659, allocations: 99.67 kB / 15.73 MB, free: 6.016 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.001249/0.001249, allocations: 193.2 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.08965/0.08965, allocations: 11.19 MB / 301.7 MB, free: 4.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 61.61 kB / 417.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09335/0.09523, allocations: 51.99 MB / 469.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003334/0.09861, allocations: 1.958 MB / 471.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.1006, allocations: 1.196 MB / 472.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.278e-05/0.1007, allocations: 3.938 kB / 472.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008174/0.1015, allocations: 311.2 kB / 472.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004367/0.1019, allocations: 211.3 kB / 473 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006912/0.1026, allocations: 297.4 kB / 473.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.103, allocations: 347.1 kB / 473.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.1032, allocations: 40.39 kB / 473.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.1034, allocations: 147.4 kB / 473.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.1036, allocations: 151.4 kB / 474 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.1036, allocations: 16 kB / 474 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.1038, allocations: 83.95 kB / 474.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1039, allocations: 99.66 kB / 474.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.1041, allocations: 131.2 kB / 474.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004408/0.1045, allocations: 370.7 kB / 474.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1046, allocations: 0 / 474.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1046, allocations: 3.938 kB / 474.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.1046, allocations: 0 / 474.6 MB, free: 9.77 MB / 350.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.0009605/0.1055, allocations: 0.6803 MB / 475.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.1056, allocations: 11.89 kB / 475.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.1056, allocations: 38.75 kB / 475.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.706e-05/0.1057, allocations: 36.7 kB / 475.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004426/0.1062, allocations: 346.6 kB / 475.8 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.1062, allocations: 8.375 kB / 475.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.1062, allocations: 19.92 kB / 475.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.1065, allocations: 132.2 kB / 475.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.1065, allocations: 0 / 475.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.1065, allocations: 0 / 475.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.1065, allocations: 4 kB / 475.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.1067, allocations: 59.91 kB / 476 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006354/0.1074, allocations: 468.4 kB / 476.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.1077, allocations: 134.8 kB / 476.6 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.1078, allocations: 52.77 kB / 476.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.1078, allocations: 3.984 kB / 476.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002467/0.1081, allocations: 119.3 kB / 476.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 6.583e-06/0.1081, allocations: 0 / 476.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005342/0.1087, allocations: 248.4 kB / 477 MB, free: 7.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.1087, allocations: 110.8 kB / 477.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005458/0.1093, allocations: 465.7 kB / 477.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.1093, allocations: 33.64 kB / 477.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.1095, allocations: 176.4 kB / 477.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.578e-05/0.1095, allocations: 39.69 kB / 477.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.087e-05/0.1096, allocations: 41.7 kB / 477.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1098, allocations: 342.8 kB / 478.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1099, allocations: 47.97 kB / 478.2 MB, free: 5.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.1101, allocations: 125.4 kB / 478.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.1103, allocations: 137.9 kB / 478.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1104, allocations: 0 / 478.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003597/0.1107, allocations: 197.2 kB / 478.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.1107, allocations: 10.91 kB / 478.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.1108, allocations: 4 kB / 478.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1108, allocations: 0 / 478.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.1109, allocations: 24.14 kB / 478.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.1109, allocations: 8 kB / 478.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.111, allocations: 19.92 kB / 478.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.111, allocations: 4 kB / 478.7 MB, free: 5.367 MB / 350.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.000178/0.1112, allocations: 184.1 kB / 478.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.195e-05/0.1113, allocations: 35.7 kB / 478.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.805e-05/0.1114, allocations: 38.98 kB / 479 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1114, allocations: 0 / 479 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1114, allocations: 4 kB / 479 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1114, allocations: 4 kB / 479 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002849/0.1117, allocations: 293.5 kB / 479.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1117, allocations: 3.938 kB / 479.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.949e-05/0.1117, allocations: 11.94 kB / 479.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1117, allocations: 0 / 479.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.1118, allocations: 8 kB / 479.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1118, allocations: 0 / 479.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1118, allocations: 0 / 479.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003885/0.1122, allocations: 232.7 kB / 479.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.688e-05/0.1123, allocations: 108.8 kB / 479.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.502e-05/0.1123, allocations: 7.984 kB / 479.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.223e-05/0.1124, allocations: 8 kB / 479.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.1125, allocations: 12.03 kB / 479.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.1125, allocations: 11.97 kB / 479.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003925/0.1129, allocations: 347.1 kB / 480 MB, free: 3.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1129, allocations: 0 / 480 MB, free: 3.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.1132, allocations: 67.88 kB / 480.1 MB, free: 3.918 MB / 350.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.002081/0.1153, allocations: 1.081 MB / 481.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000329/0.1156, allocations: 135.8 kB / 481.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1156, allocations: 0 / 481.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.1158, allocations: 59.92 kB / 481.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.1162, allocations: 83.75 kB / 481.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.12, allocations: 3.015 MB / 484.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.1204, allocations: 0.7751 MB / 485.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.1205, allocations: 46.27 kB / 485.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.1207, allocations: 95.39 kB / 485.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1207, allocations: 0 / 485.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.1507, allocations: 7.562 MB / 492.9 MB, free: 7.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.353, allocations: 8.547 kB / 492.9 MB, free: 7.246 MB / 366.1 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)