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.0009425/0.0009425, allocations: 72.45 kB / 19.17 MB, free: 0.7148 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.0009716/0.0009716, allocations: 169.9 kB / 22.46 MB, free: 2.07 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.9156/0.9156, allocations: 177.1 MB / 202.8 MB, free: 5.758 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.03377/0.03377, allocations: 8.613 MB / 267.8 MB, free: 5.137 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 2.895e-06/2.895e-06, allocations: 0 / 395.1 MB, free: 1.516 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.769e-05/3.059e-05, allocations: 6.281 kB / 395.1 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003082/0.003112, allocations: 1.939 MB / 397 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.004845, allocations: 1.282 MB / 398.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.005002, allocations: 3.938 kB / 398.3 MB, free: 14.26 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008579/0.00586, allocations: 327 kB / 398.6 MB, free: 13.94 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005321/0.006392, allocations: 275 kB / 398.9 MB, free: 13.67 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005758/0.006968, allocations: 234 kB / 399.1 MB, free: 13.45 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004172/0.007385, allocations: 367 kB / 399.5 MB, free: 13.09 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.007522, allocations: 36.5 kB / 399.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.007759, allocations: 195.4 kB / 399.7 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.007916, allocations: 143.7 kB / 399.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.162e-05/0.007948, allocations: 23.98 kB / 399.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.008149, allocations: 99.86 kB / 400 MB, free: 12.6 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.298e-05/0.008242, allocations: 95.67 kB / 400 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.00836, allocations: 75.72 kB / 400.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004364/0.008797, allocations: 378.8 kB / 400.5 MB, free: 12.06 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.008802, allocations: 0 / 400.5 MB, free: 12.06 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.008804, allocations: 0 / 400.5 MB, free: 12.06 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.008812, allocations: 0 / 400.5 MB, free: 12.06 MB / 330.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.0008599/0.009672, allocations: 0.6165 MB / 401.1 MB, free: 11.4 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.009711, allocations: 8.031 kB / 401.1 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.327e-05/0.009745, allocations: 42.73 kB / 401.2 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.346e-05/0.009808, allocations: 32.75 kB / 401.2 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/0.01014, allocations: 291.9 kB / 401.5 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.01016, allocations: 8.359 kB / 401.5 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.01017, allocations: 12.38 kB / 401.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001916/0.01036, allocations: 113.9 kB / 401.6 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.01037, allocations: 0 / 401.6 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.01038, allocations: 0 / 401.6 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.01039, allocations: 8 kB / 401.6 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.01049, allocations: 63.95 kB / 401.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.01098, allocations: 411.7 kB / 402.1 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.01118, allocations: 130.9 kB / 402.2 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.214e-05/0.01125, allocations: 48.83 kB / 402.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.01127, allocations: 0 / 402.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000177/0.01145, allocations: 131.2 kB / 402.4 MB, free: 10.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.01145, allocations: 0 / 402.4 MB, free: 10.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003614/0.01181, allocations: 240 kB / 402.6 MB, free: 9.777 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.01185, allocations: 59.39 kB / 402.7 MB, free: 9.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003898/0.01224, allocations: 0.4898 MB / 403.2 MB, free: 9.207 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.01226, allocations: 29.7 kB / 403.2 MB, free: 9.172 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.572e-05/0.01236, allocations: 168.4 kB / 403.4 MB, free: 9 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.01239, allocations: 47.67 kB / 403.4 MB, free: 8.953 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.414e-05/0.01245, allocations: 41.64 kB / 403.4 MB, free: 8.906 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.919e-05/0.01255, allocations: 350.8 kB / 403.8 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.617e-05/0.01262, allocations: 55.84 kB / 403.8 MB, free: 8.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.01275, allocations: 167.1 kB / 404 MB, free: 8.297 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.0129, allocations: 133.9 kB / 404.1 MB, free: 8.145 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.0129, allocations: 0 / 404.1 MB, free: 8.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000238/0.01314, allocations: 217.3 kB / 404.3 MB, free: 7.926 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.01316, allocations: 4 kB / 404.4 MB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.01317, allocations: 3.938 kB / 404.4 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.01318, allocations: 7.984 kB / 404.4 MB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.01332, allocations: 27.92 kB / 404.4 MB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.01333, allocations: 4 kB / 404.4 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.49e-05/0.0134, allocations: 15.94 kB / 404.4 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.01341, allocations: 8 kB / 404.4 MB, free: 7.855 MB / 330.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.0001362/0.01355, allocations: 180.5 kB / 404.6 MB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.01359, allocations: 39.7 kB / 404.6 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003163/0.0139, allocations: 217.3 kB / 404.8 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.01391, allocations: 4 kB / 404.9 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.01391, allocations: 0 / 404.9 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.01392, allocations: 3.984 kB / 404.9 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002138/0.01413, allocations: 252.6 kB / 405.1 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.01413, allocations: 0 / 405.1 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.037e-05/0.01416, allocations: 12 kB / 405.1 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.01417, allocations: 4 kB / 405.1 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.01418, allocations: 3.938 kB / 405.1 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.01418, allocations: 7.984 kB / 405.1 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01418, allocations: 0 / 405.1 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.01444, allocations: 248.1 kB / 405.4 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.364e-05/0.01448, allocations: 35.69 kB / 405.4 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.01452, allocations: 11.94 kB / 405.4 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.079e-05/0.01457, allocations: 7.984 kB / 405.4 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.828e-05/0.01462, allocations: 11.98 kB / 405.4 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.01463, allocations: 20.05 kB / 405.5 MB, free: 6.738 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002754/0.01491, allocations: 363.1 kB / 405.8 MB, free: 6.391 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01491, allocations: 0 / 405.8 MB, free: 6.391 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002536/0.01516, allocations: 55.94 kB / 405.9 MB, free: 6.336 MB / 330.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.001241/0.0164, allocations: 1.132 MB / 407 MB, free: 5.363 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002232/0.01663, allocations: 132.1 kB / 407.1 MB, free: 5.234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01663, allocations: 4.062 kB / 407.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.22e-05/0.01671, allocations: 67.88 kB / 407.2 MB, free: 5.164 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.01699, allocations: 75.73 kB / 407.3 MB, free: 5.094 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002944/0.01993, allocations: 3.107 MB / 410.4 MB, free: 1.863 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.02005, allocations: 174.2 kB / 410.5 MB, free: 1.676 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.02016, allocations: 58.86 kB / 410.6 MB, free: 1.617 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.02029, allocations: 108.4 kB / 410.7 MB, free: 1.512 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.02029, allocations: 0 / 410.7 MB, free: 1.512 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/0.1748, allocations: 8.709 MB / 419.4 MB, free: 26.44 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.022/7.196, allocations: 4.969 kB / 419.4 MB, free: 26.44 MB / 330.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 & 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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.0815559476614] Failed to read output from testmodel.py, exit status != 0: 7.301161526702344 7.311316669 7.300845213 Calling exit ...