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.009476/0.009476, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001368/0.001368, allocations: 197 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.454/1.454, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05893/0.05893, allocations: 10.75 MB / 280.7 MB, free: 10.42 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.001538/0.001538, allocations: 59.91 kB / 390.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2843, allocations: 49.02 MB / 439.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003272/0.2876, allocations: 1.962 MB / 441.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.2895, allocations: 1.116 MB / 442.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.2896, allocations: 1.375 kB / 442.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007893/0.2905, allocations: 316.3 kB / 442.7 MB, free: 2.871 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.0004267/0.2909, allocations: 205.9 kB / 442.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006576/0.2916, allocations: 269.7 kB / 443.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.292, allocations: 346.5 kB / 443.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.2921, allocations: 46.41 kB / 443.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.2923, allocations: 144 kB / 443.7 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.2925, allocations: 144.4 kB / 443.9 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.2926, allocations: 16.84 kB / 443.9 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.2928, allocations: 96.34 kB / 444 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.2929, allocations: 90.11 kB / 444.1 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.293, allocations: 141.6 kB / 444.2 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005024/0.2935, allocations: 358.6 kB / 444.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2935, allocations: 0 / 444.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2935, allocations: 0 / 444.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.2936, allocations: 1.281 kB / 444.6 MB, free: 2.043 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.000968/0.2945, allocations: 0.6667 MB / 445.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.2946, allocations: 13.36 kB / 445.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.028e-05/0.2946, allocations: 40.8 kB / 445.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.653e-05/0.2947, allocations: 36.81 kB / 445.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.2952, allocations: 348.9 kB / 445.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.2952, allocations: 8.344 kB / 445.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.454e-05/0.2952, allocations: 11.58 kB / 445.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.2955, allocations: 130.7 kB / 445.8 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.2955, allocations: 0 / 445.8 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.2956, allocations: 2.297 kB / 445.8 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2956, allocations: 5.406 kB / 445.8 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.2957, allocations: 54.92 kB / 445.9 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006604/0.2964, allocations: 471.2 kB / 446.3 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.2967, allocations: 135 kB / 446.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.2968, allocations: 48.83 kB / 446.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/0.2969, allocations: 2.672 kB / 446.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002577/0.2971, allocations: 129.3 kB / 446.6 MB, free: 468 kB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2971, allocations: 0 / 446.6 MB, free: 468 kB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005061/0.2977, allocations: 232.4 kB / 446.9 MB, free: 364 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.2977, allocations: 115.6 kB / 447 MB, free: 228 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004968/0.2982, allocations: 472 kB / 447.4 MB, free: 8 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.145e-05/0.2983, allocations: 32.8 kB / 447.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.2985, allocations: 165.7 kB / 447.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.723e-05/0.2985, allocations: 37.03 kB / 447.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.015e-05/0.2986, allocations: 41.22 kB / 447.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2987, allocations: 347.5 kB / 448 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.2989, allocations: 43.67 kB / 448.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.299, allocations: 121.7 kB / 448.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.2993, allocations: 138.3 kB / 448.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2993, allocations: 1.125 kB / 448.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003718/0.2997, allocations: 201.8 kB / 448.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2997, allocations: 5.656 kB / 448.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.2997, allocations: 5.469 kB / 448.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2998, allocations: 2.938 kB / 448.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.2999, allocations: 26.95 kB / 448.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2999, allocations: 3.656 kB / 448.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.3, allocations: 18.73 kB / 448.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.3001, allocations: 10.47 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.0002088/0.3003, allocations: 186 kB / 448.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.778e-05/0.3003, allocations: 33.88 kB / 448.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.967e-05/0.3004, allocations: 36.8 kB / 448.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3004, allocations: 1.281 kB / 448.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.3004, allocations: 0 / 448.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3005, allocations: 0 / 448.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.3008, allocations: 297.7 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.3008, allocations: 3.938 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.565e-05/0.3009, allocations: 6.75 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3009, allocations: 5.156 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.3009, allocations: 1.141 kB / 449.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3009, allocations: 5.344 kB / 449.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3009, allocations: 3.984 kB / 449.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.3013, allocations: 219.2 kB / 449.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.3015, allocations: 111.1 kB / 449.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.595e-05/0.3015, allocations: 7.984 kB / 449.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.671e-05/0.3016, allocations: 10.12 kB / 449.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.182e-05/0.3017, allocations: 14.86 kB / 449.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-05/0.3017, allocations: 11.42 kB / 449.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005314/0.3023, allocations: 344.5 kB / 449.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3023, allocations: 1.188 kB / 449.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.3027, allocations: 57.39 kB / 449.9 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.002026/0.3047, allocations: 1.09 MB / 451 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003994/0.3051, allocations: 124.2 kB / 451.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3051, allocations: 0 / 451.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.3053, allocations: 55.7 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.0004575/0.3057, allocations: 87.72 kB / 451.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004793/0.3106, allocations: 3.003 MB / 454.3 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.311, allocations: 0.7756 MB / 455.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.3112, allocations: 44.48 kB / 455.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.3114, allocations: 97.39 kB / 455.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3114, allocations: 0 / 455.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/0.3421, allocations: 7.69 MB / 462.9 MB, free: 5.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.29/8.632, allocations: 3.938 kB / 462.9 MB, free: 5.086 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 & /home/hudson/saved_omc/OMSimulator/install/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)