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: "" <> 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.005496/0.005496, allocations: 96.73 kB / 15.73 MB, free: 6.043 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.001459/0.001459, allocations: 196.7 kB / 16.67 MB, free: 5.969 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.519/1.519, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06493/0.06493, allocations: 10.74 MB / 280.7 MB, free: 10.38 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.00212/0.00212, allocations: 70.94 kB / 390.4 MB, free: 5.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2788, allocations: 49.02 MB / 439.4 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003248/0.2821, allocations: 1.951 MB / 441.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.2838, allocations: 1.12 MB / 442.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.284, allocations: 6.875 kB / 442.5 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008283/0.2848, allocations: 320.1 kB / 442.8 MB, free: 2.863 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004878/0.2853, allocations: 211.6 kB / 443 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007182/0.286, allocations: 269.7 kB / 443.2 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004748/0.2865, allocations: 332.5 kB / 443.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.2866, allocations: 26.97 kB / 443.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.2868, allocations: 142.8 kB / 443.7 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.287, allocations: 150 kB / 443.9 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.2871, allocations: 21.56 kB / 443.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.2873, allocations: 97.48 kB / 444 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.2875, allocations: 87.12 kB / 444.1 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.2876, allocations: 128.4 kB / 444.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005393/0.2881, allocations: 362.4 kB / 444.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.2881, allocations: 0 / 444.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2881, allocations: 1.094 kB / 444.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.2881, allocations: 0 / 444.6 MB, free: 2.051 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.001062/0.2892, allocations: 0.6858 MB / 445.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.2892, allocations: 13.64 kB / 445.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.846e-05/0.2893, allocations: 40.23 kB / 445.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.037e-05/0.2894, allocations: 37.7 kB / 445.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.2898, allocations: 341.2 kB / 445.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.2899, allocations: 13.45 kB / 445.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.709e-05/0.2899, allocations: 11.67 kB / 445.7 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003225/0.2902, allocations: 137.6 kB / 445.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2902, allocations: 3.938 kB / 445.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.2902, allocations: 1.703 kB / 445.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.2903, allocations: 1.938 kB / 445.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.2904, allocations: 54.91 kB / 445.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006639/0.2911, allocations: 471 kB / 446.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.2914, allocations: 122.5 kB / 446.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.2915, allocations: 46.62 kB / 446.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.2915, allocations: 6.828 kB / 446.5 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.2918, allocations: 120.9 kB / 446.6 MB, free: 460 kB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.2918, allocations: 1.188 kB / 446.6 MB, free: 460 kB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005688/0.2923, allocations: 235.7 kB / 446.9 MB, free: 356 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.2924, allocations: 114.7 kB / 447 MB, free: 220 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005469/0.2929, allocations: 472.7 kB / 447.4 MB, free: 0 / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.143e-05/0.293, allocations: 32.42 kB / 447.5 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.2932, allocations: 166.1 kB / 447.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.503e-05/0.2932, allocations: 41.77 kB / 447.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.137e-05/0.2933, allocations: 40.56 kB / 447.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.2935, allocations: 343.5 kB / 448 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.2937, allocations: 44.42 kB / 448.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.2939, allocations: 124.6 kB / 448.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.2941, allocations: 139.3 kB / 448.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2941, allocations: 0 / 448.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004312/0.2946, allocations: 200.7 kB / 448.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.2946, allocations: 6.469 kB / 448.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2946, allocations: 6.625 kB / 448.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.2946, allocations: 2.656 kB / 448.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.2948, allocations: 25.47 kB / 448.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2948, allocations: 4.078 kB / 448.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.2949, allocations: 26.14 kB / 448.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.2949, allocations: 6 kB / 448.6 MB, free: 15.08 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.0002067/0.2951, allocations: 179.1 kB / 448.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.764e-05/0.2952, allocations: 37.55 kB / 448.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.385e-05/0.2952, allocations: 36.23 kB / 448.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2953, allocations: 2.594 kB / 448.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2953, allocations: 48 / 448.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.2953, allocations: 11.97 kB / 448.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003234/0.2956, allocations: 292.5 kB / 449.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/0.2956, allocations: 7.875 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-05/0.2956, allocations: 7 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2956, allocations: 1.188 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.2956, allocations: 6.453 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2956, allocations: 0 / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2957, allocations: 1.188 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.296, allocations: 226.7 kB / 449.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.984e-05/0.2961, allocations: 113.6 kB / 449.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.734e-05/0.2962, allocations: 6.531 kB / 449.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.92e-05/0.2963, allocations: 8.641 kB / 449.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.2963, allocations: 14.17 kB / 449.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.2963, allocations: 8.875 kB / 449.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003848/0.2967, allocations: 345.2 kB / 449.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2967, allocations: 0 / 449.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003261/0.2971, allocations: 62.02 kB / 450 MB, free: 14.09 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,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.002171/0.2992, allocations: 1.088 MB / 451 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003316/0.2996, allocations: 114.7 kB / 451.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2996, allocations: 7.312 kB / 451.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.2997, allocations: 55.2 kB / 451.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004534/0.3001, allocations: 81.11 kB / 451.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.3042, allocations: 3.015 MB / 454.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.3046, allocations: 0.776 MB / 455.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001623/0.3048, allocations: 44.48 kB / 455.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.305, allocations: 97.05 kB / 455.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.305, allocations: 0 / 455.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.3388, allocations: 7.606 MB / 462.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.732/9.071, allocations: 7.875 kB / 462.8 MB, free: 5.184 MB / 334.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)