Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.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(ThermoPower.Test.GasComponents.TestFanMech,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestFanMech",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestFanMech,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestFanMech",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.001466/0.001466, allocations: 97.02 kB / 16.3 MB, free: 5.996 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.00221/0.00221, allocations: 183.9 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.349/2.349, allocations: 205.4 MB / 223.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5734/0.5734, allocations: 48.77 MB / 320.4 MB, free: 3.828 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "Dassl" 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.0009482/0.0009484, allocations: 12 kB / 391.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1895, allocations: 60.24 MB / 451.5 MB, free: 1.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestFanMech): time 0.5454/0.7349, allocations: 124.4 MB / 0.5624 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005094/0.7401, allocations: 2.097 MB / 0.5645 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008992/0.741, allocations: 11.94 kB / 0.5645 GB, free: 14.56 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001119/0.7421, allocations: 206.9 kB / 0.5647 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002692/0.7449, allocations: 0.6429 MB / 0.5653 GB, free: 13.71 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.7472, allocations: 0.6192 MB / 0.5659 GB, free: 13.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002202/0.7495, allocations: 1.046 MB / 0.5669 GB, free: 12.05 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009083/0.7504, allocations: 462.2 kB / 0.5674 GB, free: 11.6 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001351/0.7517, allocations: 0.5921 MB / 0.568 GB, free: 11.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.753, allocations: 0.6116 MB / 0.5686 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.7531, allocations: 36 kB / 0.5686 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001567/0.7547, allocations: 0.7685 MB / 0.5693 GB, free: 9.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000255/0.755, allocations: 175.4 kB / 0.5695 GB, free: 9.418 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000243/0.7552, allocations: 157.4 kB / 0.5697 GB, free: 9.258 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.7568, allocations: 0.9301 MB / 0.5706 GB, free: 8.332 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.7568, allocations: 0 / 0.5706 GB, free: 8.332 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.7568, allocations: 0 / 0.5706 GB, free: 8.332 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.7568, allocations: 0 / 0.5706 GB, free: 8.332 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.002061/0.7589, allocations: 0.9274 MB / 0.5715 GB, free: 7.359 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.000117/0.759, allocations: 8.031 kB / 0.5715 GB, free: 7.352 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.7592, allocations: 102.5 kB / 0.5716 GB, free: 7.242 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008196/0.76, allocations: 199 kB / 0.5718 GB, free: 7.047 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008202/0.7608, allocations: 448.8 kB / 0.5722 GB, free: 6.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.761, allocations: 75.02 kB / 0.5723 GB, free: 6.492 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.7611, allocations: 56 kB / 0.5723 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.7625, allocations: 0.7265 MB / 0.573 GB, free: 5.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.7626, allocations: 7.844 kB / 0.573 GB, free: 5.672 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.318e-05/0.7627, allocations: 28 kB / 0.5731 GB, free: 5.645 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.7627, allocations: 12.62 kB / 0.5731 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.764, allocations: 0.6218 MB / 0.5737 GB, free: 5.012 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005931/0.7699, allocations: 2.872 MB / 0.5765 GB, free: 1.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.771, allocations: 436.5 kB / 0.5769 GB, free: 1.496 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002228/0.7733, allocations: 1.074 MB / 0.578 GB, free: 352 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.7734, allocations: 35 kB / 0.578 GB, free: 308 kB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 6.833e-06/0.7734, allocations: 0 / 0.578 GB, free: 308 kB / 446.1 MB Notification: Performance of matching and sorting (n=51): time 0.007023/0.7804, allocations: 2.49 MB / 0.5804 GB, free: 13.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.152e-05/0.7805, allocations: 111.2 kB / 0.5805 GB, free: 13.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008047/0.7814, allocations: 0.5143 MB / 0.581 GB, free: 13.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.2e-05/0.7815, allocations: 41.7 kB / 0.5811 GB, free: 12.97 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/0.7818, allocations: 312.2 kB / 0.5814 GB, free: 12.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.782, allocations: 173.5 kB / 0.5815 GB, free: 12.49 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-05/0.782, allocations: 16 kB / 0.5816 GB, free: 12.47 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.7822, allocations: 366.7 kB / 0.5819 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005475/0.7828, allocations: 241.9 kB / 0.5821 GB, free: 11.87 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006974/0.7835, allocations: 432.7 kB / 0.5825 GB, free: 11.36 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.7841, allocations: 262.1 kB / 0.5828 GB, free: 11.11 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.7841, allocations: 0 / 0.5828 GB, free: 11.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002057/0.7862, allocations: 0.8904 MB / 0.5837 GB, free: 10.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00104/0.7873, allocations: 2.1 MB / 0.5857 GB, free: 7.938 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.7873, allocations: 5.75 kB / 0.5857 GB, free: 7.934 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/0.7892, allocations: 490.1 kB / 0.5862 GB, free: 7.449 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005823/0.7898, allocations: 131.8 kB / 0.5863 GB, free: 7.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.7915, allocations: 1.464 MB / 0.5877 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008261/0.7924, allocations: 83.84 kB / 0.5878 GB, free: 5.723 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.7925, allocations: 79.98 kB / 0.5879 GB, free: 5.645 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.7925, allocations: 4 kB / 0.5879 GB, free: 5.641 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001742/0.7943, allocations: 0.7644 MB / 0.5886 GB, free: 4.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.7943, allocations: 4 kB / 0.5887 GB, free: 4.867 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006653/0.795, allocations: 327 kB / 0.589 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006366/0.7957, allocations: 151.8 kB / 0.5891 GB, free: 4.395 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00416/0.7998, allocations: 2.511 MB / 0.5916 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008285/0.8007, allocations: 80 kB / 0.5916 GB, free: 1.656 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.505e-05/0.8008, allocations: 31.98 kB / 0.5917 GB, free: 1.625 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 8 (Clutch1.free,$PRE.Clutch1.startForward,Clutch1.startForward,$PRE.Clutch1.startBackward,Clutch1.startBackward,Clutch1.locked,$PRE.Clutch1.mode,Clutch1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,3 11} Notification: Performance of prepare postOptimizeDAE: time 0.000539/0.8013, allocations: 279.5 kB / 0.5919 GB, free: 1.344 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002056/0.8015, allocations: 71.17 kB / 0.592 GB, free: 1.273 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/0.8038, allocations: 0.7419 MB / 0.5927 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.8038, allocations: 4 kB / 0.5927 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.8038, allocations: 0 / 0.5927 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.8038, allocations: 3.984 kB / 0.5927 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003404/0.8072, allocations: 1.429 MB / 0.5941 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.8073, allocations: 0 / 0.5941 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004703/0.8077, allocations: 75.95 kB / 0.5942 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.8093, allocations: 434.5 kB / 0.5946 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-05/0.8094, allocations: 19.98 kB / 0.5946 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/0.8111, allocations: 1.406 MB / 0.596 GB, free: 13.03 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.8111, allocations: 5.156 kB / 0.596 GB, free: 13.03 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002607/0.8137, allocations: 1.042 MB / 0.597 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005727/0.8143, allocations: 196.4 kB / 0.5972 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002097/0.8145, allocations: 17.92 kB / 0.5972 GB, free: 11.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007601/0.8153, allocations: 75.84 kB / 0.5973 GB, free: 11.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.8155, allocations: 80.23 kB / 0.5974 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/0.8157, allocations: 79.81 kB / 0.5975 GB, free: 11.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005766/0.8163, allocations: 362.8 kB / 0.5978 GB, free: 11.15 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8163, allocations: 4 kB / 0.5978 GB, free: 11.15 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001728/0.818, allocations: 395.9 kB / 0.5982 GB, free: 10.76 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (ConstantSpeed1.phi,Clutch1.phi_rel,Clutch1.w_rel) * Number of discrete variables: 5 (Clutch1.free,Clutch1.startForward,Clutch1.startBackward,Clutch1.locked,Clutch1.mode) * Number of discrete states: 3 (Clutch1.mode,Clutch1.startBackward,Clutch1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.003337/0.8214, allocations: 1.689 MB / 0.5998 GB, free: 9.047 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002937/0.8243, allocations: 1.138 MB / 0.601 GB, free: 7.898 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.8243, allocations: 320 / 0.601 GB, free: 7.898 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008431/0.8252, allocations: 322.3 kB / 0.6013 GB, free: 7.582 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.8268, allocations: 216.8 kB / 0.6015 GB, free: 7.371 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00668/0.8335, allocations: 5.519 MB / 0.6069 GB, free: 1.715 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000817/0.8344, allocations: 0.8954 MB / 0.6077 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009683/0.8354, allocations: 132.8 kB / 0.6079 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004631/0.8359, allocations: 207.4 kB / 0.6081 GB, free: 468 kB / 478.1 MB Notification: Performance of SimCode: time 5.049e-06/0.8359, allocations: 0 / 0.6081 GB, free: 468 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3648/1.201, allocations: 21.95 MB / 0.6295 GB, free: 151.3 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003015/1.201, allocations: 193.5 kB / 0.6297 GB, free: 151.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.023/4.224, allocations: 0 / 0.6297 GB, free: 151.1 MB / 494.1 MB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_GasComponents_TestFanMech_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_GasComponents_TestFanMech.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestFanMech.pipe 2>&1) Environment - environmentSimulation: