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.008061/0.008061, allocations: 100.1 kB / 15.73 MB, free: 6.047 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.001732/0.001732, allocations: 187.6 kB / 16.67 MB, free: 5.977 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.569/1.569, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05849/0.05849, allocations: 10.74 MB / 280.6 MB, free: 10.42 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.001783/0.001783, allocations: 70.72 kB / 390.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3074, allocations: 49.01 MB / 439.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003181/0.3106, allocations: 1.598 MB / 440.9 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005766/0.3112, allocations: 251.9 kB / 441.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.388e-05/0.3113, allocations: 0.8125 kB / 441.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.415e-05/0.3113, allocations: 9.234 kB / 441.2 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.3114, allocations: 20.86 kB / 441.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.3118, allocations: 72.59 kB / 441.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.312, allocations: 97.64 kB / 441.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.3121, allocations: 21.88 kB / 441.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.028e-05/0.3122, allocations: 44.67 kB / 441.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.3123, allocations: 49.91 kB / 441.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.719e-05/0.3124, allocations: 8.688 kB / 441.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.3125, allocations: 38.66 kB / 441.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.62e-05/0.3125, allocations: 25.2 kB / 441.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.897e-05/0.3126, allocations: 47.88 kB / 441.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002109/0.3128, allocations: 112.2 kB / 441.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3128, allocations: 1.188 kB / 441.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3128, allocations: 0 / 441.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3128, allocations: 0 / 441.7 MB, free: 3.527 MB / 318.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.0005753/0.3134, allocations: 422.4 kB / 442.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3135, allocations: 14.3 kB / 442.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.655e-05/0.3135, allocations: 43.34 kB / 442.2 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.346e-05/0.3136, allocations: 18.7 kB / 442.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.3138, allocations: 216.2 kB / 442.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.3138, allocations: 6.812 kB / 442.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.3138, allocations: 6.328 kB / 442.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.314, allocations: 95.25 kB / 442.5 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.314, allocations: 3.938 kB / 442.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.3141, allocations: 5.312 kB / 442.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.3141, allocations: 2.328 kB / 442.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.3142, allocations: 48.91 kB / 442.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005532/0.3148, allocations: 372.2 kB / 443 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.315, allocations: 107.7 kB / 443.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.3151, allocations: 58.78 kB / 443.1 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.3151, allocations: 2.172 kB / 443.1 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002797/0.3154, allocations: 112.1 kB / 443.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 3.227e-06/0.3154, allocations: 5.359 kB / 443.2 MB, free: 2.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004256/0.3159, allocations: 183 kB / 443.4 MB, free: 2.191 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.3159, allocations: 54.73 kB / 443.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.316, allocations: 172.3 kB / 443.6 MB, free: 2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.3161, allocations: 35.45 kB / 443.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.3161, allocations: 113 kB / 443.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.201e-05/0.3162, allocations: 36.03 kB / 443.8 MB, free: 1.828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-05/0.3162, allocations: 37.77 kB / 443.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.55e-05/0.3163, allocations: 331 kB / 444.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.1e-05/0.3164, allocations: 30.8 kB / 444.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.3165, allocations: 85.95 kB / 444.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.3167, allocations: 121 kB / 444.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3167, allocations: 0 / 444.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002602/0.317, allocations: 164.7 kB / 444.6 MB, free: 1.219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.317, allocations: 6.031 kB / 444.6 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.317, allocations: 1.438 kB / 444.6 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.317, allocations: 6.406 kB / 444.6 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.3172, allocations: 27.17 kB / 444.6 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3172, allocations: 6.375 kB / 444.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.161e-05/0.3173, allocations: 14.92 kB / 444.6 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.3173, allocations: 10.28 kB / 444.6 MB, free: 1.199 MB / 318.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 9.139e-05/0.3174, allocations: 125.2 kB / 444.8 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.3174, allocations: 13.31 kB / 444.8 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/0.3175, allocations: 19.53 kB / 444.8 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3175, allocations: 1.25 kB / 444.8 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3175, allocations: 0.7969 kB / 444.8 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3175, allocations: 1.641 kB / 444.8 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004348/0.3179, allocations: 446.7 kB / 445.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3179, allocations: 1.656 kB / 445.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.744e-05/0.318, allocations: 16.11 kB / 445.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3181, allocations: 1 kB / 445.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.3181, allocations: 3.484 kB / 445.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.3181, allocations: 4.75 kB / 445.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3181, allocations: 5.062 kB / 445.3 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004145/0.3185, allocations: 295.8 kB / 445.6 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.3186, allocations: 90.58 kB / 445.6 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.3186, allocations: 2.047 kB / 445.6 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.631e-05/0.3187, allocations: 8.062 kB / 445.7 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.3188, allocations: 11.92 kB / 445.7 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.3188, allocations: 12.22 kB / 445.7 MB, free: 368 kB / 318.1 MB Notification: Performance of sorting global known variables: time 8.657e-05/0.3189, allocations: 122.2 kB / 445.8 MB, free: 280 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3189, allocations: 0 / 445.8 MB, free: 280 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.3192, allocations: 31.06 kB / 445.8 MB, free: 272 kB / 318.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.0009027/0.3201, allocations: 0.8378 MB / 446.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002701/0.3204, allocations: 95.64 kB / 446.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3204, allocations: 0 / 446.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3205, allocations: 57.02 kB / 446.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.3209, allocations: 32.17 kB / 446.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.3236, allocations: 1.918 MB / 448.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.3241, allocations: 0.7141 MB / 449.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.599e-05/0.3242, allocations: 15.84 kB / 449.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.439e-05/0.3243, allocations: 34.81 kB / 449.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3243, allocations: 0 / 449.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.3495, allocations: 3.082 MB / 452.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/8.116, allocations: 7.031 kB / 452.6 MB, free: 11.95 MB / 334.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)