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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 116.8 kB / 17.17 MB, free: 6 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 214.3 kB / 20.13 MB, free: 3.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.373/1.373, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.05963/0.05963, allocations: 11.33 MB / 320.9 MB, free: 14.09 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 63.91 kB / 446.5 MB, free: 38.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08328/0.08511, allocations: 56.01 MB / 0.4908 GB, free: 3.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002446/0.08756, allocations: 2.002 MB / 0.4927 GB, free: 1.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.08912, allocations: 1.345 MB / 0.494 GB, free: 68 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.08922, allocations: 7.938 kB / 0.494 GB, free: 60 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008169/0.09004, allocations: 327.1 kB / 0.4943 GB, free: 15.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005283/0.09057, allocations: 262.2 kB / 0.4946 GB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005271/0.0911, allocations: 231.5 kB / 0.4948 GB, free: 15.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.0915, allocations: 359.1 kB / 0.4952 GB, free: 14.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.09162, allocations: 28.61 kB / 0.4952 GB, free: 14.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001874/0.09181, allocations: 155.4 kB / 0.4953 GB, free: 14.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.092, allocations: 163.3 kB / 0.4955 GB, free: 14.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.388e-05/0.09204, allocations: 16 kB / 0.4955 GB, free: 14.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.09222, allocations: 103.9 kB / 0.4956 GB, free: 14.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.09233, allocations: 91.72 kB / 0.4957 GB, free: 14.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.09246, allocations: 131.2 kB / 0.4958 GB, free: 14.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004369/0.09289, allocations: 382.4 kB / 0.4962 GB, free: 13.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.0929, allocations: 0 / 0.4962 GB, free: 13.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.0929, allocations: 4 kB / 0.4962 GB, free: 13.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.09291, allocations: 0 / 0.4962 GB, free: 13.85 MB / 366.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.0009954/0.0939, allocations: 0.6936 MB / 0.4969 GB, free: 13.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.09394, allocations: 12.03 kB / 0.4969 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.323e-05/0.09396, allocations: 192 / 0.4969 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.094, allocations: 42.73 kB / 0.4969 GB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.422e-05/0.09407, allocations: 36.7 kB / 0.4969 GB, free: 13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.09453, allocations: 350.7 kB / 0.4973 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.09455, allocations: 12.12 kB / 0.4973 GB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.09457, allocations: 4 kB / 0.4973 GB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.09485, allocations: 140.1 kB / 0.4974 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.09486, allocations: 0 / 0.4974 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.09487, allocations: 4 kB / 0.4974 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.09487, allocations: 0 / 0.4974 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.09504, allocations: 59.97 kB / 0.4975 GB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006565/0.09569, allocations: 476.3 kB / 0.4979 GB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.09601, allocations: 134.7 kB / 0.4981 GB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.09613, allocations: 48.83 kB / 0.4981 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.09615, allocations: 0 / 0.4981 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.09639, allocations: 121.6 kB / 0.4982 GB, free: 11.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.09639, allocations: 0 / 0.4982 GB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005305/0.09692, allocations: 241.2 kB / 0.4985 GB, free: 11.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.828e-05/0.097, allocations: 114.8 kB / 0.4986 GB, free: 11.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005323/0.09753, allocations: 489.6 kB / 0.499 GB, free: 10.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.09756, allocations: 33.7 kB / 0.4991 GB, free: 10.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.09769, allocations: 164.4 kB / 0.4992 GB, free: 10.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.507e-05/0.09774, allocations: 43.69 kB / 0.4993 GB, free: 10.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.711e-05/0.0978, allocations: 41.7 kB / 0.4993 GB, free: 10.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.09796, allocations: 346.8 kB / 0.4996 GB, free: 10.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.09806, allocations: 39.98 kB / 0.4997 GB, free: 10 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.09823, allocations: 121.4 kB / 0.4998 GB, free: 9.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.09847, allocations: 149.9 kB / 0.4999 GB, free: 9.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.09847, allocations: 0 / 0.4999 GB, free: 9.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003467/0.09882, allocations: 193.2 kB / 0.5001 GB, free: 9.484 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.09883, allocations: 8.156 kB / 0.5001 GB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.09884, allocations: 4 kB / 0.5001 GB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.09885, allocations: 4 kB / 0.5001 GB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.09897, allocations: 27.92 kB / 0.5002 GB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.09898, allocations: 4 kB / 0.5002 GB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.09908, allocations: 19.88 kB / 0.5002 GB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.0991, allocations: 12 kB / 0.5002 GB, free: 9.406 MB / 366.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.0001704/0.09927, allocations: 176 kB / 0.5004 GB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.435e-05/0.09933, allocations: 43.7 kB / 0.5004 GB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.216e-05/0.09939, allocations: 35.06 kB / 0.5004 GB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.09939, allocations: 4 kB / 0.5005 GB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.09939, allocations: 0 / 0.5005 GB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.0994, allocations: 4.109 kB / 0.5005 GB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.09968, allocations: 309.4 kB / 0.5007 GB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.09968, allocations: 0 / 0.5007 GB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.408e-05/0.09972, allocations: 11.98 kB / 0.5008 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.09972, allocations: 0 / 0.5008 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.09973, allocations: 11.94 kB / 0.5008 GB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.09974, allocations: 4 kB / 0.5008 GB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.09974, allocations: 0 / 0.5008 GB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003882/0.1001, allocations: 235.6 kB / 0.501 GB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.054e-05/0.1002, allocations: 104.9 kB / 0.5011 GB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/0.1002, allocations: 8 kB / 0.5011 GB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.721e-05/0.1003, allocations: 11.98 kB / 0.5011 GB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.1004, allocations: 11.98 kB / 0.5011 GB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.1004, allocations: 8 kB / 0.5011 GB, free: 8.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003906/0.1008, allocations: 367.1 kB / 0.5015 GB, free: 8 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1008, allocations: 0 / 0.5015 GB, free: 8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002859/0.1011, allocations: 51.94 kB / 0.5015 GB, free: 7.949 MB / 366.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.002035/0.1031, allocations: 1.099 MB / 0.5026 GB, free: 6.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003047/0.1034, allocations: 115.9 kB / 0.5027 GB, free: 6.867 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1034, allocations: 0 / 0.5027 GB, free: 6.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.1036, allocations: 54.59 kB / 0.5028 GB, free: 6.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.104, allocations: 81.27 kB / 0.5029 GB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.1076, allocations: 3.069 MB / 0.5058 GB, free: 3.566 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.108, allocations: 0.7831 MB / 0.5066 GB, free: 2.758 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.1081, allocations: 42.5 kB / 0.5067 GB, free: 2.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.1082, allocations: 99.41 kB / 0.5067 GB, free: 2.613 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1082, allocations: 0 / 0.5067 GB, free: 2.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.1333, allocations: 7.848 MB / 0.5144 GB, free: 10.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.059/8.193, allocations: 11.38 kB / 0.5144 GB, free: 10.9 MB / 382.1 MB " [Timeout remaining time 652] (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 --stepSize=0.008 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.771008649957366] Failed to read output from testmodel.py, exit status != 0: 8.372095562983304 8.399056704 8.301517504 Calling exit ...