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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002422/0.002422, allocations: 195.7 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06451/0.06451, allocations: 10.73 MB / 280.2 MB, free: 10.66 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001629/0.00163, allocations: 63.89 kB / 340.1 MB, free: 23.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.09011, allocations: 49.02 MB / 389.2 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003534/0.09368, allocations: 1.65 MB / 390.8 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006568/0.09437, allocations: 251.2 kB / 391 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.488e-05/0.09449, allocations: 4 kB / 391.1 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.72e-05/0.09461, allocations: 3.938 kB / 391.1 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.09474, allocations: 11.86 kB / 391.1 MB, free: 4.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.09514, allocations: 59.95 kB / 391.1 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002023/0.09535, allocations: 103.6 kB / 391.2 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.09551, allocations: 21.44 kB / 391.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.615e-05/0.09559, allocations: 35.84 kB / 391.3 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.0957, allocations: 59.64 kB / 391.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.09573, allocations: 8 kB / 391.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.09586, allocations: 27.98 kB / 391.4 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.895e-05/0.09592, allocations: 35.89 kB / 391.4 MB, free: 4.227 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.529e-05/0.09599, allocations: 43.67 kB / 391.5 MB, free: 4.184 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001969/0.09619, allocations: 111.6 kB / 391.6 MB, free: 4.074 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.0962, allocations: 4 kB / 391.6 MB, free: 4.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.09621, allocations: 0 / 391.6 MB, free: 4.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.09623, allocations: 0 / 391.6 MB, free: 4.07 MB / 286.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.0006916/0.09692, allocations: 423.2 kB / 392 MB, free: 3.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.09698, allocations: 11.89 kB / 392 MB, free: 3.594 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.445e-05/0.09705, allocations: 42.73 kB / 392 MB, free: 3.543 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.09711, allocations: 16.69 kB / 392.1 MB, free: 3.527 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/0.09736, allocations: 208.7 kB / 392.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.09741, allocations: 16.36 kB / 392.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.373e-05/0.09745, allocations: 8.375 kB / 392.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.09769, allocations: 86.2 kB / 392.4 MB, free: 3.172 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.09771, allocations: 3.938 kB / 392.4 MB, free: 3.168 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.09773, allocations: 4 kB / 392.4 MB, free: 3.164 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.09774, allocations: 4 kB / 392.4 MB, free: 3.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.09787, allocations: 43.92 kB / 392.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007284/0.09861, allocations: 384.5 kB / 392.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.09885, allocations: 102.6 kB / 392.9 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.09897, allocations: 60.81 kB / 393 MB, free: 2.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.099, allocations: 0 / 393 MB, free: 2.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.09929, allocations: 111.4 kB / 393.1 MB, free: 2.398 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.906e-06/0.09931, allocations: 0 / 393.1 MB, free: 2.398 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004329/0.09975, allocations: 189.3 kB / 393.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.09981, allocations: 51.41 kB / 393.3 MB, free: 2.145 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.09997, allocations: 171.3 kB / 393.5 MB, free: 1.965 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.1, allocations: 37.7 kB / 393.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.721e-05/0.1001, allocations: 116 kB / 393.6 MB, free: 1.805 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.1001, allocations: 31.59 kB / 393.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.765e-05/0.1002, allocations: 33.72 kB / 393.7 MB, free: 1.734 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1003, allocations: 330.8 kB / 394 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.825e-05/0.1004, allocations: 35.98 kB / 394 MB, free: 1.367 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.1005, allocations: 89.38 kB / 394.1 MB, free: 1.262 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.1007, allocations: 121.9 kB / 394.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.1007, allocations: 0 / 394.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002495/0.101, allocations: 157.3 kB / 394.4 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.101, allocations: 8 kB / 394.4 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.101, allocations: 0 / 394.4 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.101, allocations: 4 kB / 394.4 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.1012, allocations: 32.11 kB / 394.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.1012, allocations: 8 kB / 394.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.849e-05/0.1013, allocations: 11.84 kB / 394.5 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.1013, allocations: 15.98 kB / 394.5 MB, free: 0.8828 MB / 286.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.0001137/0.1014, allocations: 125.7 kB / 394.6 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/0.1014, allocations: 23.75 kB / 394.6 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.1015, allocations: 13.53 kB / 394.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1015, allocations: 0 / 394.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.1015, allocations: 0 / 394.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1015, allocations: 7.984 kB / 394.6 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004747/0.102, allocations: 443 kB / 395.1 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.102, allocations: 0 / 395.1 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.815e-05/0.1021, allocations: 23.98 kB / 395.1 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1021, allocations: 0 / 395.1 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.1021, allocations: 0 / 395.1 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1021, allocations: 4 kB / 395.1 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1021, allocations: 3.938 kB / 395.1 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004068/0.1026, allocations: 295.4 kB / 395.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.053e-05/0.1026, allocations: 85.05 kB / 395.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.1027, allocations: 15.92 kB / 395.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.334e-05/0.1027, allocations: 0 / 395.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.485e-05/0.1028, allocations: 15.92 kB / 395.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.1028, allocations: 4 kB / 395.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001081/0.1029, allocations: 128 kB / 395.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1029, allocations: 0 / 395.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002655/0.1032, allocations: 28 kB / 395.7 MB, free: 15.59 MB / 302.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.000699/0.1039, allocations: 0.8448 MB / 396.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.1042, allocations: 104 kB / 396.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1042, allocations: 0 / 396.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.1043, allocations: 55.92 kB / 396.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.1046, allocations: 33.5 kB / 396.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.1068, allocations: 1.951 MB / 398.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.1071, allocations: 0.7085 MB / 399.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.022e-05/0.1072, allocations: 13.42 kB / 399.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.941e-05/0.1073, allocations: 35.42 kB / 399.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1073, allocations: 4 kB / 399.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.1231, allocations: 2.86 MB / 402.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000229/0.1234, allocations: 230.7 kB / 402.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.048, allocations: 0 / 402.5 MB, free: 8.668 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)