Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.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.0008621/0.0008621, 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.0009793/0.0009793, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.919/0.919, allocations: 177.2 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.03535/0.03535, allocations: 8.609 MB / 267.8 MB, free: 5.133 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.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 395.1 MB, free: 2.695 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.172e-05/2.389e-05, allocations: 2.281 kB / 395.1 MB, free: 2.691 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003045/0.003069, allocations: 1.591 MB / 396.7 MB, free: 1.09 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007318/0.003801, allocations: 231.8 kB / 396.9 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.622e-05/0.003887, allocations: 3.938 kB / 396.9 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 5.059e-05/0.003937, allocations: 11.86 kB / 396.9 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.004065, allocations: 19.81 kB / 396.9 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/0.004477, allocations: 71.84 kB / 397 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.004708, allocations: 99.64 kB / 397.1 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.004858, allocations: 17.61 kB / 397.1 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.004963, allocations: 63.83 kB / 397.2 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.047e-05/0.005054, allocations: 31.83 kB / 397.2 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.134e-05/0.005085, allocations: 12 kB / 397.2 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.005228, allocations: 35.91 kB / 397.2 MB, free: 0.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.452e-05/0.005272, allocations: 31.84 kB / 397.3 MB, free: 480 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 5.286e-05/0.005325, allocations: 23.92 kB / 397.3 MB, free: 456 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.005553, allocations: 119.6 kB / 397.4 MB, free: 336 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.005555, allocations: 0 / 397.4 MB, free: 336 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.005557, allocations: 0 / 397.4 MB, free: 336 kB / 362.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.005562, allocations: 0 / 397.4 MB, free: 336 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006322/0.006194, allocations: 357.6 kB / 397.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.006232, allocations: 8.031 kB / 397.8 MB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.662e-05/0.006268, allocations: 42.73 kB / 397.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.251e-05/0.006301, allocations: 8.891 kB / 397.8 MB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.006451, allocations: 157.4 kB / 398 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.006461, allocations: 8.375 kB / 398 MB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.006484, allocations: 12.36 kB / 398 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.006639, allocations: 89.31 kB / 398.1 MB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.006646, allocations: 192 / 398.1 MB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.006657, allocations: 8.359 kB / 398.1 MB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.006665, allocations: 16.06 kB / 398.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.679e-05/0.006742, allocations: 39.98 kB / 398.1 MB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004346/0.007176, allocations: 327.8 kB / 398.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.007333, allocations: 102.5 kB / 398.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.191e-05/0.007404, allocations: 56.83 kB / 398.6 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.007416, allocations: 0 / 398.6 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004779/0.007894, allocations: 107.4 kB / 398.7 MB, free: 14.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.593e-06/0.007895, allocations: 3.938 kB / 398.7 MB, free: 14.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003343/0.00823, allocations: 193.5 kB / 398.9 MB, free: 14.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.008268, allocations: 55.41 kB / 399 MB, free: 14.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.008382, allocations: 167.3 kB / 399.1 MB, free: 14.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.008397, allocations: 29.7 kB / 399.2 MB, free: 14.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.188e-05/0.008459, allocations: 116 kB / 399.3 MB, free: 14.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.008484, allocations: 39.81 kB / 399.3 MB, free: 14.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.206e-05/0.008526, allocations: 37.7 kB / 399.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.354e-05/0.008609, allocations: 330.8 kB / 399.7 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.022e-05/0.008659, allocations: 31.98 kB / 399.7 MB, free: 13.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.689e-05/0.008726, allocations: 85.86 kB / 399.8 MB, free: 13.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.008842, allocations: 133.2 kB / 399.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.008843, allocations: 4 kB / 399.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001631/0.009006, allocations: 161.4 kB / 400.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.009019, allocations: 4 kB / 400.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.009026, allocations: 4 kB / 400.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.009036, allocations: 0 / 400.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.805e-05/0.009124, allocations: 27.98 kB / 400.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.00913, allocations: 4 kB / 400.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.672e-05/0.009167, allocations: 20.06 kB / 400.1 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.009176, allocations: 8 kB / 400.1 MB, free: 13.35 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: 9 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_TU.y,$PRE.fO_dig_TU.y,fO_dig_FE.y,$PRE.fO_dig_FE.y,fO_dig_BE.y,$PRE.fO_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 6.998e-05/0.009246, allocations: 132.1 kB / 400.3 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.00926, allocations: 15.91 kB / 400.3 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.009291, allocations: 13.45 kB / 400.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.009294, allocations: 4 kB / 400.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.009298, allocations: 0 / 400.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.009302, allocations: 0 / 400.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/0.009616, allocations: 405.4 kB / 400.7 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.009618, allocations: 4 kB / 400.7 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.326e-05/0.009671, allocations: 16 kB / 400.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.009673, allocations: 0 / 400.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.009683, allocations: 3.984 kB / 400.7 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.009685, allocations: 4 kB / 400.7 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.009687, allocations: 4 kB / 400.7 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002708/0.009958, allocations: 303.1 kB / 401 MB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.452e-05/0.009972, allocations: 15.89 kB / 401 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.009988, allocations: 0 / 401 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.138e-05/0.01003, allocations: 12.06 kB / 401.1 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.505e-05/0.01006, allocations: 7.984 kB / 401.1 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.01007, allocations: 7.984 kB / 401.1 MB, free: 12.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.069e-05/0.01013, allocations: 124.9 kB / 401.2 MB, free: 12.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01013, allocations: 0 / 401.2 MB, free: 12.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001838/0.01032, allocations: 31.88 kB / 401.2 MB, free: 12.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (fO.y) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_BE.y,fO_dig_FE.y,fO_dig_TU.y) * Number of discrete states: 6 (fO_dig_TU.u,fO_dig_TU.y,fO_dig_FE.u,fO_dig_FE.y,fO_dig_BE.u,fO_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000454/0.01077, allocations: 0.8411 MB / 402.1 MB, free: 11.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001647/0.01094, allocations: 103.9 kB / 402.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01094, allocations: 0 / 402.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.208e-05/0.011, allocations: 51.91 kB / 402.2 MB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.01121, allocations: 24.69 kB / 402.2 MB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.01269, allocations: 1.93 MB / 404.2 MB, free: 9.098 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.086e-05/0.01275, allocations: 93.8 kB / 404.3 MB, free: 8.988 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.065e-05/0.01279, allocations: 13.48 kB / 404.3 MB, free: 8.973 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.01284, allocations: 44.48 kB / 404.3 MB, free: 8.93 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.01284, allocations: 0 / 404.3 MB, free: 8.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02066/0.0335, allocations: 3.746 MB / 408.1 MB, free: 5.336 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.769/6.803, allocations: 13.75 kB / 408.1 MB, free: 5.324 MB / 378.7 MB " [Timeout remaining time 653] (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO_fmu --startTime=0 --stopTime=30 --stepSize=0.012 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.596008630469441] Failed to read output from testmodel.py, exit status != 0: 6.887010497972369 6.89474708 6.887271015 Calling exit ...