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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 110.6 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06463/0.06463, allocations: 11.35 MB / 314 MB, free: 14.95 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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 0.001887/0.001887, allocations: 71.88 kB / 437.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1135, allocations: 54.83 MB / 492.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003322/0.1168, allocations: 1.599 MB / 493.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006624/0.1175, allocations: 259.1 kB / 494 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.002e-05/0.1175, allocations: 0 / 494 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.044e-05/0.1176, allocations: 7.875 kB / 494 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.1177, allocations: 19.8 kB / 494 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.118, allocations: 75.81 kB / 494.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002002/0.1182, allocations: 99.73 kB / 494.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.1184, allocations: 21.44 kB / 494.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.083e-05/0.1184, allocations: 35.8 kB / 494.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.1185, allocations: 55.69 kB / 494.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.1185, allocations: 8 kB / 494.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.05e-05/0.1186, allocations: 31.98 kB / 494.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.248e-05/0.1187, allocations: 19.92 kB / 494.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.568e-05/0.1187, allocations: 59.53 kB / 494.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.119, allocations: 107.5 kB / 494.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.081e-05/0.119, allocations: 7.984 kB / 494.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.119, allocations: 0 / 494.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.119, allocations: 0 / 494.6 MB, free: 1.121 MB / 350.1 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.0007184/0.1197, allocations: 430.6 kB / 495 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.1198, allocations: 15.89 kB / 495 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.095e-05/0.1198, allocations: 34.75 kB / 495 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.1199, allocations: 20.83 kB / 495 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.1201, allocations: 213 kB / 495.3 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1201, allocations: 4.375 kB / 495.3 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.1202, allocations: 12.38 kB / 495.3 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.1204, allocations: 86.2 kB / 495.4 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.1204, allocations: 7.875 kB / 495.4 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.1204, allocations: 4 kB / 495.4 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1204, allocations: 0 / 495.4 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.1206, allocations: 47.97 kB / 495.4 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000681/0.1212, allocations: 384.6 kB / 495.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.1215, allocations: 102.6 kB / 495.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.1216, allocations: 48.84 kB / 495.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.1216, allocations: 4 kB / 495.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003014/0.1219, allocations: 107.3 kB / 496 MB, free: 15.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.1219, allocations: 7.938 kB / 496.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004373/0.1223, allocations: 175.3 kB / 496.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.1224, allocations: 55.41 kB / 496.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.1226, allocations: 175.3 kB / 496.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.1226, allocations: 29.7 kB / 496.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.138e-05/0.1227, allocations: 108.2 kB / 496.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.218e-05/0.1227, allocations: 51.64 kB / 496.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.653e-05/0.1228, allocations: 29.72 kB / 496.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.123, allocations: 326.8 kB / 497 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.049e-05/0.123, allocations: 35.97 kB / 497 MB, free: 14.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.1232, allocations: 81.92 kB / 497.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.1234, allocations: 126.5 kB / 497.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1234, allocations: 4 kB / 497.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002802/0.1237, allocations: 167.7 kB / 497.4 MB, free: 14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.1237, allocations: 8 kB / 497.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1237, allocations: 0 / 497.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.1237, allocations: 7.938 kB / 497.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.1238, allocations: 27.98 kB / 497.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1238, allocations: 0 / 497.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.588e-05/0.1239, allocations: 24.02 kB / 497.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.1239, allocations: 8 kB / 497.5 MB, free: 13.93 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: 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 0.0001241/0.124, allocations: 136 kB / 497.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.1241, allocations: 11.91 kB / 497.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.245e-05/0.1241, allocations: 21.52 kB / 497.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.1241, allocations: 0 / 497.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1241, allocations: 0 / 497.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1241, allocations: 4 kB / 497.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000574/0.1247, allocations: 446.3 kB / 498.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1247, allocations: 0 / 498.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.1248, allocations: 19.98 kB / 498.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1248, allocations: 0 / 498.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.1248, allocations: 4 kB / 498.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1248, allocations: 0 / 498.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1248, allocations: 3.938 kB / 498.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.1253, allocations: 303.2 kB / 498.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.467e-05/0.1254, allocations: 85.02 kB / 498.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.1254, allocations: 4 kB / 498.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.652e-05/0.1255, allocations: 7.984 kB / 498.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.1255, allocations: 11.94 kB / 498.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.1255, allocations: 7.984 kB / 498.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001127/0.1256, allocations: 124 kB / 498.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1256, allocations: 0 / 498.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.1259, allocations: 27.94 kB / 498.7 MB, free: 12.64 MB / 366.1 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.0008253/0.1267, allocations: 0.8413 MB / 499.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002494/0.127, allocations: 100.3 kB / 499.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.127, allocations: 4.062 kB / 499.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.1271, allocations: 51.91 kB / 499.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.1274, allocations: 33.5 kB / 499.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.1301, allocations: 1.913 MB / 0.4898 GB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.1305, allocations: 0.7124 MB / 0.4905 GB, free: 8.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.555e-05/0.1305, allocations: 13.42 kB / 0.4905 GB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.058e-05/0.1306, allocations: 43.42 kB / 0.4906 GB, free: 8.766 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1306, allocations: 0 / 0.4906 GB, free: 8.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03085/0.1615, allocations: 3.024 MB / 0.4935 GB, free: 5.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.267, allocations: 3.75 kB / 0.4935 GB, free: 5.887 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.785639067646116] Failed to read output from testmodel.py, exit status != 0: 8.33439440978691 8.349955097 8.227896582 Calling exit ...