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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001601/0.001601, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08034/0.08034, allocations: 10.66 MB / 23.92 MB, free: 1.375 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.734/1.734, allocations: 205.2 MB / 232.1 MB, free: 12.75 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 85.22 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.6e-05/3.605e-05, allocations: 7.984 kB / 340.6 MB, free: 3.516 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2947, allocations: 49.98 MB / 390.6 MB, free: 35.71 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.4117, allocations: 77.28 MB / 467.8 MB, free: 6.316 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.412, allocations: 71.95 kB / 467.9 MB, free: 6.246 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.006169/0.4182, allocations: 2.407 MB / 470.3 MB, free: 3.832 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4183, allocations: 3.938 kB / 470.3 MB, free: 3.828 MB / 346.8 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.4183, allocations: 4 kB / 470.3 MB, free: 3.824 MB / 346.8 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.0004729/0.4188, allocations: 394.4 kB / 470.7 MB, free: 3.395 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.4188, allocations: 11.97 kB / 470.7 MB, free: 3.383 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.076e-05/0.4189, allocations: 38.5 kB / 470.8 MB, free: 3.336 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.447e-05/0.4189, allocations: 19.77 kB / 470.8 MB, free: 3.316 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.4192, allocations: 209 kB / 471 MB, free: 3.074 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.4192, allocations: 12 kB / 471 MB, free: 3.062 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.4192, allocations: 8 kB / 471 MB, free: 3.055 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/0.4195, allocations: 81.66 kB / 471.1 MB, free: 2.969 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.4195, allocations: 0 / 471.1 MB, free: 2.969 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.4195, allocations: 3.984 kB / 471.1 MB, free: 2.965 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.4195, allocations: 4 kB / 471.1 MB, free: 2.961 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.848e-05/0.4196, allocations: 44.73 kB / 471.1 MB, free: 2.918 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006433/0.4203, allocations: 376.6 kB / 471.5 MB, free: 2.5 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.4204, allocations: 98.66 kB / 471.6 MB, free: 2.395 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.193e-05/0.4205, allocations: 53.03 kB / 471.7 MB, free: 2.34 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.4206, allocations: 11.89 kB / 471.7 MB, free: 2.328 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001714/0.4208, allocations: 96.5 kB / 471.8 MB, free: 2.223 MB / 346.8 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.4208, allocations: 0 / 471.8 MB, free: 2.223 MB / 346.8 MB Notification: Performance of matching and sorting (n=13): time 0.0002925/0.4211, allocations: 139.1 kB / 471.9 MB, free: 2.082 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.4211, allocations: 55.41 kB / 472 MB, free: 2.016 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.4213, allocations: 151.4 kB / 472.1 MB, free: 1.855 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.4213, allocations: 33.7 kB / 472.1 MB, free: 1.816 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.303e-05/0.4214, allocations: 116 kB / 472.2 MB, free: 1.699 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.4214, allocations: 47.44 kB / 472.3 MB, free: 1.652 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-06/0.4214, allocations: 4 kB / 472.3 MB, free: 1.648 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.4216, allocations: 322.8 kB / 472.6 MB, free: 1.324 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.8e-05/0.4216, allocations: 24 kB / 472.6 MB, free: 1.301 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.4217, allocations: 74 kB / 472.7 MB, free: 1.207 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.634e-05/0.4218, allocations: 43.94 kB / 472.8 MB, free: 1.164 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4218, allocations: 0 / 472.8 MB, free: 1.164 MB / 346.8 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002187/0.4221, allocations: 154.3 kB / 472.9 MB, free: 1.008 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.4221, allocations: 4 kB / 472.9 MB, free: 1.004 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.4221, allocations: 4 kB / 472.9 MB, free: 1 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.4221, allocations: 0 / 472.9 MB, free: 1 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.4223, allocations: 27.98 kB / 472.9 MB, free: 0.9727 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.4223, allocations: 11.92 kB / 473 MB, free: 0.9609 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.882e-05/0.4223, allocations: 11.91 kB / 473 MB, free: 0.9492 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.4224, allocations: 11.94 kB / 473 MB, free: 0.9375 MB / 346.8 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,$PRE.fO_dig_BE.y,fO_dig_BE.y,$PRE.fO_dig_FE.y,fO_dig_FE.y,$PRE.fO_dig_TU.y,fO_dig_TU.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.4225, allocations: 133.8 kB / 473.1 MB, free: 0.8008 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.973e-05/0.4225, allocations: 7.906 kB / 473.1 MB, free: 0.793 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.194e-05/0.4226, allocations: 13.66 kB / 473.1 MB, free: 0.7852 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.4226, allocations: 0 / 473.1 MB, free: 0.7852 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.4226, allocations: 4 kB / 473.1 MB, free: 0.7812 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4226, allocations: 0 / 473.1 MB, free: 0.7812 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004471/0.423, allocations: 427.1 kB / 473.5 MB, free: 316 kB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.423, allocations: 4 kB / 473.6 MB, free: 312 kB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.4232, allocations: 23.98 kB / 473.6 MB, free: 288 kB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.4232, allocations: 0 / 473.6 MB, free: 288 kB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.4232, allocations: 4 kB / 473.6 MB, free: 284 kB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4232, allocations: 0 / 473.6 MB, free: 284 kB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4232, allocations: 0 / 473.6 MB, free: 284 kB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.4236, allocations: 285.8 kB / 473.9 MB, free: 15.98 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.4236, allocations: 92.94 kB / 473.9 MB, free: 15.87 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.4237, allocations: 0 / 473.9 MB, free: 15.87 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.946e-05/0.4238, allocations: 12.06 kB / 474 MB, free: 15.86 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.4238, allocations: 7.984 kB / 474 MB, free: 15.85 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.4238, allocations: 4 kB / 474 MB, free: 15.85 MB / 362.8 MB Notification: Performance of sorting global known variables: time 9.766e-05/0.4239, allocations: 120.9 kB / 474.1 MB, free: 15.73 MB / 362.8 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4239, allocations: 0 / 474.1 MB, free: 15.73 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0002585/0.4242, allocations: 35.94 kB / 474.1 MB, free: 15.7 MB / 362.8 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006842/0.4249, allocations: 0.8389 MB / 475 MB, free: 14.83 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0001977/0.4251, allocations: 80.81 kB / 475 MB, free: 14.75 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4251, allocations: 3.938 kB / 475 MB, free: 14.75 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 8.045e-05/0.4252, allocations: 47.98 kB / 475.1 MB, free: 14.7 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.4255, allocations: 20.69 kB / 475.1 MB, free: 14.68 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008169/0.4263, allocations: 263.5 kB / 475.4 MB, free: 14.39 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.4266, allocations: 0.7127 MB / 476.1 MB, free: 13.65 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 6.227e-05/0.4266, allocations: 25.08 kB / 476.1 MB, free: 13.62 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.177e-05/0.4267, allocations: 35.42 kB / 476.1 MB, free: 13.59 MB / 362.8 MB Notification: Performance of SimCode: time 3.51e-07/0.4267, allocations: 0 / 476.1 MB, free: 13.59 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01424/0.441, allocations: 2.631 MB / 478.8 MB, free: 11.05 MB / 362.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/0.4412, allocations: 179.6 kB / 478.9 MB, free: 10.83 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/2.081, allocations: 0 / 478.9 MB, free: 10.83 MB / 362.8 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/linux/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)