Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.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.Basic,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.Basic,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic",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.001657/0.001657, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002044/0.002044, allocations: 198 kB / 16.53 MB, free: 6.668 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.506/1.506, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06027/0.06027, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001473/0.001473, allocations: 63.89 kB / 340.6 MB, free: 23.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08576/0.08725, allocations: 49.02 MB / 389.7 MB, free: 6.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.003461/0.09076, allocations: 1.85 MB / 391.5 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.09201, allocations: 0.6108 MB / 392.1 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.09214, allocations: 0 / 392.1 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.849e-05/0.09223, allocations: 19.73 kB / 392.1 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.09239, allocations: 31.61 kB / 392.2 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007247/0.09312, allocations: 191.4 kB / 392.4 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002853/0.09342, allocations: 199.5 kB / 392.6 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.09362, allocations: 48.61 kB / 392.6 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.09374, allocations: 91.5 kB / 392.7 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.09387, allocations: 99.41 kB / 392.8 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.866e-05/0.09393, allocations: 20 kB / 392.8 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.09418, allocations: 155.8 kB / 393 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.523e-05/0.09424, allocations: 47.83 kB / 393 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.974e-05/0.09434, allocations: 95.34 kB / 393.1 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003843/0.09474, allocations: 299.2 kB / 393.4 MB, free: 2.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.09475, allocations: 0 / 393.4 MB, free: 2.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.09476, allocations: 4 kB / 393.4 MB, free: 2.402 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.09477, allocations: 3.938 kB / 393.4 MB, free: 2.398 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008983/0.09568, allocations: 0.5529 MB / 393.9 MB, free: 1.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.09573, allocations: 11.89 kB / 394 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.138e-05/0.09579, allocations: 46.73 kB / 394 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.35e-05/0.09586, allocations: 24.66 kB / 394 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.09616, allocations: 283.5 kB / 394.3 MB, free: 1.383 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.09619, allocations: 8.375 kB / 394.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.09623, allocations: 16.38 kB / 394.3 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.09657, allocations: 171 kB / 394.5 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.0966, allocations: 7.875 kB / 394.5 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.09663, allocations: 8 kB / 394.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.09664, allocations: 8 kB / 394.5 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.09684, allocations: 67.94 kB / 394.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000952/0.0978, allocations: 0.5158 MB / 395.1 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.09812, allocations: 138.6 kB / 395.2 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.09825, allocations: 60.83 kB / 395.3 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.09827, allocations: 0 / 395.3 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003234/0.0986, allocations: 151.3 kB / 395.4 MB, free: 152 kB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.803e-06/0.09862, allocations: 0 / 395.4 MB, free: 152 kB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006048/0.09922, allocations: 268.7 kB / 395.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.759e-05/0.09933, allocations: 158.2 kB / 395.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.09959, allocations: 266.5 kB / 396.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.09963, allocations: 41.7 kB / 396.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.09975, allocations: 152.4 kB / 396.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.203e-05/0.09981, allocations: 63.09 kB / 396.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.09993, allocations: 61.97 kB / 396.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1001, allocations: 342.8 kB / 396.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.1002, allocations: 52.25 kB / 396.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.1005, allocations: 185.6 kB / 397 MB, free: 14.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003677/0.1008, allocations: 241.5 kB / 397.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1008, allocations: 4 kB / 397.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004518/0.1013, allocations: 261 kB / 397.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1013, allocations: 8.453 kB / 397.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1013, allocations: 4 kB / 397.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.1014, allocations: 8 kB / 397.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.1016, allocations: 55.91 kB / 397.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.1017, allocations: 11.88 kB / 397.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.1018, allocations: 31.75 kB / 397.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.1019, allocations: 12 kB / 397.6 MB, free: 13.78 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: complexPoles_dig.u_pre1:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (complexPoles_dig.y,$PRE.complexPoles_dig.y,$PRE.complexPoles_dig.u_pre1,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1,$PRE.complexPoles_dig.y_pre1,lLag_dig.y,$PRE.lLag_dig.y,fO_dig.y,$PRE.fO_dig.y,int_dig.y,$PRE.int_dig.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.000199/0.1021, allocations: 157.4 kB / 397.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.401e-05/0.1021, allocations: 27.72 kB / 397.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.883e-05/0.1022, allocations: 26.17 kB / 397.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1022, allocations: 4 kB / 397.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.1022, allocations: 7.938 kB / 397.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1022, allocations: 0 / 397.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006851/0.1029, allocations: 0.5451 MB / 398.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1029, allocations: 0 / 398.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.1032, allocations: 35.97 kB / 398.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1032, allocations: 4 kB / 398.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.1032, allocations: 11.94 kB / 398.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1032, allocations: 0 / 398.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1032, allocations: 3.938 kB / 398.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006009/0.1038, allocations: 382.6 kB / 398.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.1039, allocations: 112.7 kB / 398.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.613e-05/0.104, allocations: 11.94 kB / 398.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.1041, allocations: 11.98 kB / 399 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.1042, allocations: 11.98 kB / 399 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.1042, allocations: 8 kB / 399 MB, free: 12.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001817/0.1044, allocations: 186 kB / 399.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1044, allocations: 0 / 399.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000382/0.1048, allocations: 79.98 kB / 399.2 MB, free: 12.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (int.y,fO.y,lLag.dy,complexPoles.y,complexPoles.dy) * Number of discrete variables: 10 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,int_dig.y,fO_dig.y,lLag_dig.y,complexPoles_dig.y,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1) * Number of discrete states: 10 (complexPoles_dig.u,complexPoles_dig.u_pre1,complexPoles_dig.y,complexPoles_dig.y_pre1,lLag_dig.u,lLag_dig.y,fO_dig.u,fO_dig.y,int_dig.u,int_dig.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 14 * 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.001052/0.1059, allocations: 0.9891 MB / 400.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003713/0.1062, allocations: 180.6 kB / 400.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1063, allocations: 4.062 kB / 400.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.1064, allocations: 75.34 kB / 400.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.1068, allocations: 50.08 kB / 400.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003661/0.1105, allocations: 2.911 MB / 403.4 MB, free: 7.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.1108, allocations: 0.748 MB / 404.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000115/0.1109, allocations: 30.28 kB / 404.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.111, allocations: 79.41 kB / 404.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1111, allocations: 0 / 404.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02621/0.1373, allocations: 5.615 MB / 409.9 MB, free: 1.215 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/7.854, allocations: 4 kB / 409.9 MB, free: 1.211 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)