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.00072/0.00072, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007726/0.0007726, allocations: 169.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8854/0.8854, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.03567/0.03567, allocations: 8.611 MB / 267.8 MB, free: 5.129 MB / 250.7 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 395.1 MB, free: 2.676 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.611e-05/1.795e-05, allocations: 2.281 kB / 395.1 MB, free: 2.672 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002358/0.002376, allocations: 1.936 MB / 397 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.003936, allocations: 1.282 MB / 398.3 MB, free: 15.44 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.004057, allocations: 4 kB / 398.3 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006436/0.004701, allocations: 324.6 kB / 398.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004284/0.005129, allocations: 271 kB / 398.9 MB, free: 14.85 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004713/0.005601, allocations: 245.7 kB / 399.1 MB, free: 14.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003633/0.005964, allocations: 363 kB / 399.5 MB, free: 14.26 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.006089, allocations: 40.41 kB / 399.5 MB, free: 14.21 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.006296, allocations: 183.5 kB / 399.7 MB, free: 14.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.006454, allocations: 151.6 kB / 399.8 MB, free: 13.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.006481, allocations: 19.94 kB / 399.9 MB, free: 13.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000185/0.006666, allocations: 99.86 kB / 400 MB, free: 13.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.438e-05/0.00676, allocations: 91.69 kB / 400 MB, free: 13.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.766e-05/0.006838, allocations: 79.7 kB / 400.1 MB, free: 13.6 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004144/0.007252, allocations: 386.7 kB / 400.5 MB, free: 13.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.007256, allocations: 0 / 400.5 MB, free: 13.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.007258, allocations: 0 / 400.5 MB, free: 13.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.007264, allocations: 0 / 400.5 MB, free: 13.22 MB / 378.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.0008334/0.008097, allocations: 0.6126 MB / 401.1 MB, free: 12.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.008141, allocations: 8.031 kB / 401.1 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.008178, allocations: 46.73 kB / 401.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.332e-05/0.008242, allocations: 40.7 kB / 401.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.008585, allocations: 296 kB / 401.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.008601, allocations: 4.375 kB / 401.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.008617, allocations: 12.36 kB / 401.5 MB, free: 12.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.0088, allocations: 109.9 kB / 401.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.008808, allocations: 0 / 401.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.008818, allocations: 4 kB / 401.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.008823, allocations: 0 / 401.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.008925, allocations: 67.89 kB / 401.7 MB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000524/0.009449, allocations: 411.7 kB / 402.1 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.00967, allocations: 138.8 kB / 402.2 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.077e-05/0.009741, allocations: 40.84 kB / 402.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.00976, allocations: 0 / 402.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001919/0.009952, allocations: 127.3 kB / 402.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.854e-06/0.009954, allocations: 3.938 kB / 402.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004033/0.01036, allocations: 246.7 kB / 402.6 MB, free: 10.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.0104, allocations: 51.41 kB / 402.7 MB, free: 10.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.01078, allocations: 0.4976 MB / 403.2 MB, free: 10.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.01079, allocations: 33.7 kB / 403.2 MB, free: 10.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.2e-05/0.01089, allocations: 164.4 kB / 403.4 MB, free: 10.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.423e-05/0.01092, allocations: 43.69 kB / 403.4 MB, free: 10.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.017e-05/0.01097, allocations: 45.64 kB / 403.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.01107, allocations: 346.8 kB / 403.8 MB, free: 9.707 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.301e-05/0.01114, allocations: 43.97 kB / 403.8 MB, free: 9.664 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.01127, allocations: 174.2 kB / 404 MB, free: 9.457 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.01144, allocations: 138 kB / 404.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.01144, allocations: 4 kB / 404.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002313/0.01167, allocations: 201.3 kB / 404.3 MB, free: 9.094 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.01169, allocations: 4 kB / 404.3 MB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.0117, allocations: 12.03 kB / 404.4 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.01171, allocations: 4 kB / 404.4 MB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.065e-05/0.01179, allocations: 24.11 kB / 404.4 MB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.0118, allocations: 8 kB / 404.4 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.86e-05/0.01187, allocations: 15.95 kB / 404.4 MB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.01188, allocations: 7.984 kB / 404.4 MB, free: 9.02 MB / 378.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 (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.0001344/0.01201, allocations: 180.3 kB / 404.6 MB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.386e-05/0.01205, allocations: 39.73 kB / 404.6 MB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002967/0.01234, allocations: 235.8 kB / 404.9 MB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.01235, allocations: 0 / 404.9 MB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.01235, allocations: 0 / 404.9 MB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.01236, allocations: 0 / 404.9 MB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.01255, allocations: 248.6 kB / 405.1 MB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.01256, allocations: 4 kB / 405.1 MB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3e-05/0.01259, allocations: 11.98 kB / 405.1 MB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.01259, allocations: 0 / 405.1 MB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.0126, allocations: 11.94 kB / 405.1 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.0126, allocations: 0 / 405.1 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.01261, allocations: 0 / 405.1 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002353/0.01284, allocations: 244.7 kB / 405.4 MB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.625e-05/0.01288, allocations: 35.69 kB / 405.4 MB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.0129, allocations: 15.88 kB / 405.4 MB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.871e-05/0.01295, allocations: 11.98 kB / 405.4 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.502e-05/0.013, allocations: 11.98 kB / 405.4 MB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.01301, allocations: 8 kB / 405.5 MB, free: 7.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002641/0.01328, allocations: 363.1 kB / 405.8 MB, free: 7.562 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01328, allocations: 0 / 405.8 MB, free: 7.562 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.01351, allocations: 55.94 kB / 405.9 MB, free: 7.508 MB / 378.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.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,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * 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 (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.001194/0.01471, allocations: 1.14 MB / 407 MB, free: 6.523 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002279/0.01494, allocations: 127.8 kB / 407.1 MB, free: 6.398 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01494, allocations: 0 / 407.1 MB, free: 6.398 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.424e-05/0.01502, allocations: 66.56 kB / 407.2 MB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.01531, allocations: 84.3 kB / 407.3 MB, free: 6.254 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.01807, allocations: 3.119 MB / 410.4 MB, free: 3.016 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.0182, allocations: 182.1 kB / 410.6 MB, free: 2.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.01832, allocations: 42.94 kB / 410.6 MB, free: 2.773 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.01845, allocations: 104.5 kB / 410.7 MB, free: 2.672 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.01845, allocations: 3.938 kB / 410.7 MB, free: 2.668 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02326/0.04171, allocations: 8.715 MB / 419.4 MB, free: 10.03 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.866/6.908, allocations: 4.609 kB / 419.4 MB, free: 10.03 MB / 394.7 MB " [Timeout remaining time 653] (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 sys.exit(0), Time elapsed: 8.668812926858664] Failed to read output from testmodel.py, exit status != 0: 7.010867656208575 7.019103887 7.010019499 Calling exit ...